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
1 changed files with 3 additions and 2 deletions

View File

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