MAM: start muc catchup with last sent message if serverId is available
This commit is contained in:
parent
7d04e6331a
commit
513427c8a8
|
@ -839,7 +839,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||
synchronized (this.messages) {
|
||||
for(int i = this.messages.size() - 1; i >= 0; --i) {
|
||||
Message message = this.messages.get(i);
|
||||
if (message.getStatus() == Message.STATUS_RECEIVED || message.isCarbon()) {
|
||||
if (message.getStatus() == Message.STATUS_RECEIVED || message.isCarbon() || message.getServerMsgId() != null) {
|
||||
lastReceived = new MamReference(message.getTimeSent(),message.getServerMsgId());
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue