fixed regression of showing delivery failed after receipt

This commit is contained in:
Daniel Gultsch 2016-11-07 21:57:08 +01:00
parent 9edbddd7e1
commit 7978fd768e
1 changed files with 1 additions and 2 deletions

View File

@ -2980,8 +2980,7 @@ public class XmppConnectionService extends Service {
public void markMessage(Message message, int status, String errorMessage) {
if (status == Message.STATUS_SEND_FAILED
&& (message.getStatus() == Message.STATUS_SEND_RECEIVED || message
.getStatus() == Message.STATUS_SEND_DISPLAYED)
&& errorMessage == null) {
.getStatus() == Message.STATUS_SEND_DISPLAYED)) {
return;
}
message.setErrorMessage(errorMessage);