aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-12-11 20:43:50 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-12-11 20:43:50 +0100
commit5e4b55a0ff446431b5b5d5c4b3d70e8898815844 (patch)
tree3c6b9e8d0860c6892a033773abeff02e3c9cb2e4 /src/main
parent5e79e94e776026438e8dea56c19fb89aef84eb9d (diff)
notfiy after mam catchup only if message count > 0
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/services/MessageArchiveService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/MessageArchiveService.java b/src/main/java/eu/siacs/conversations/services/MessageArchiveService.java
index 13261951b..4403f99cd 100644
--- a/src/main/java/eu/siacs/conversations/services/MessageArchiveService.java
+++ b/src/main/java/eu/siacs/conversations/services/MessageArchiveService.java
@@ -205,7 +205,7 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
if (complete || relevant == null || abort) {
this.finalizeQuery(query);
Log.d(Config.LOGTAG,query.getAccount().getJid().toBareJid().toString()+": finished mam after "+query.getTotalCount()+" messages");
- if (query.getWith() == null && query.getTotalCount() > 0) {
+ if (query.getWith() == null && query.getMessageCount() > 0) {
mXmppConnectionService.getNotificationService().finishBacklog(true);
}
} else {