diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-11 20:43:50 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-12-12 15:54:21 +0100 |
commit | 77396ea2c005cf6379b3ded487cf6d9e8e45ed6c (patch) | |
tree | bf7cb59f0d8398ff06ade47b01b56e9c2d7f326e /src/main/java/eu/siacs/conversations/services | |
parent | a67b1278d34a87157999a947a36b3dd8fca5c6b8 (diff) |
notfiy after mam catchup only if message count > 0
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/MessageArchiveService.java | 2 |
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 { |