fixed behaviour in message parser when doing mam catchup

This commit is contained in:
Daniel Gultsch 2017-02-15 00:08:49 +01:00
parent bb249e0881
commit c7e95d105c

View file

@ -539,7 +539,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
query.incrementActualMessageCount();
}
if (query == null || !query.isCatchup()) { //either no mam or catchup
if (query == null || query.isCatchup()) { //either no mam or catchup
if (status == Message.STATUS_SEND || status == Message.STATUS_SEND_RECEIVED) {
mXmppConnectionService.markRead(conversation);
if (query == null) {
@ -581,7 +581,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
} else if (notify) {
if (query == null) {
mXmppConnectionService.getNotificationService().push(message);
} else if (query.getWith() == null) { // mam catchup
} else if (query.isCatchup()) { // mam catchup
mXmppConnectionService.getNotificationService().pushFromBacklog(message);
}
}