improved compatibility with muc components that change the message id

This commit is contained in:
Daniel Gultsch 2015-06-02 06:23:32 +02:00
parent a577ec7c31
commit df86b0fc47

View file

@ -269,9 +269,10 @@ public class MessageParser extends AbstractParser implements
status = Message.STATUS_SEND; status = Message.STATUS_SEND;
if (mXmppConnectionService.markMessage(conversation, remoteMsgId, Message.STATUS_SEND_RECEIVED)) { if (mXmppConnectionService.markMessage(conversation, remoteMsgId, Message.STATUS_SEND_RECEIVED)) {
return; return;
} else if (remoteMsgId == null) { } else {
Message message = conversation.findSentMessageWithBody(packet.getBody()); Message message = conversation.findSentMessageWithBody(body);
if (message != null) { if (message != null) {
message.setRemoteMsgId(remoteMsgId);
mXmppConnectionService.markMessage(message, Message.STATUS_SEND_RECEIVED); mXmppConnectionService.markMessage(message, Message.STATUS_SEND_RECEIVED);
return; return;
} }