fixed regression of showing delivery failed after receipt
This commit is contained in:
parent
9edbddd7e1
commit
7978fd768e
|
@ -2980,8 +2980,7 @@ public class XmppConnectionService extends Service {
|
||||||
public void markMessage(Message message, int status, String errorMessage) {
|
public void markMessage(Message message, int status, String errorMessage) {
|
||||||
if (status == Message.STATUS_SEND_FAILED
|
if (status == Message.STATUS_SEND_FAILED
|
||||||
&& (message.getStatus() == Message.STATUS_SEND_RECEIVED || message
|
&& (message.getStatus() == Message.STATUS_SEND_RECEIVED || message
|
||||||
.getStatus() == Message.STATUS_SEND_DISPLAYED)
|
.getStatus() == Message.STATUS_SEND_DISPLAYED)) {
|
||||||
&& errorMessage == null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
message.setErrorMessage(errorMessage);
|
message.setErrorMessage(errorMessage);
|
||||||
|
|
Loading…
Reference in a new issue