aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-22 20:10:08 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-22 20:49:04 +0100
commit2222d323aeeafe1be71058e9ef93e9dcd25d9591 (patch)
tree270d272a0cc4d2c8a01ac205b85b9b497e908da0 /src/main/java/de/pixart/messenger
parent00de4cd49ccfc311207cb8fe926ebc0c118d3e08 (diff)
fixed behaviour in message parser when doing mam catchup
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/parser/MessageParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java
index 88cdefc8c..92283e80c 100644
--- a/src/main/java/de/pixart/messenger/parser/MessageParser.java
+++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java
@@ -544,7 +544,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) {
@@ -582,7 +582,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);
}
}