improved compatibility with muc components that change the message id
This commit is contained in:
parent
a577ec7c31
commit
df86b0fc47
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue