mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
do mam query after join
This commit is contained in:
parent
fd61d67dab
commit
8f066d00e0
@ -1510,7 +1510,6 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
if (conversation.getMucOptions().mamSupport()) {
|
if (conversation.getMucOptions().mamSupport()) {
|
||||||
// Use MAM instead of the limited muc history to get history
|
// Use MAM instead of the limited muc history to get history
|
||||||
x.addChild("history").setAttribute("maxchars", "0");
|
x.addChild("history").setAttribute("maxchars", "0");
|
||||||
getMessageArchiveService().catchupMUC(conversation);
|
|
||||||
} else {
|
} else {
|
||||||
// Fallback to muc history
|
// Fallback to muc history
|
||||||
x.addChild("history").setAttribute("since", PresenceGenerator.getTimestamp(conversation.getLastMessageTransmitted()));
|
x.addChild("history").setAttribute("since", PresenceGenerator.getTimestamp(conversation.getLastMessageTransmitted()));
|
||||||
@ -1527,6 +1526,9 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
databaseBackend.updateConversation(conversation);
|
databaseBackend.updateConversation(conversation);
|
||||||
}
|
}
|
||||||
conversation.setHasMessagesLeftOnServer(false);
|
conversation.setHasMessagesLeftOnServer(false);
|
||||||
|
if (conversation.getMucOptions().mamSupport()) {
|
||||||
|
getMessageArchiveService().catchupMUC(conversation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user