mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
notfiy after mam catchup only if message count > 0
This commit is contained in:
parent
5e79e94e77
commit
5e4b55a0ff
@ -205,7 +205,7 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||||||
if (complete || relevant == null || abort) {
|
if (complete || relevant == null || abort) {
|
||||||
this.finalizeQuery(query);
|
this.finalizeQuery(query);
|
||||||
Log.d(Config.LOGTAG,query.getAccount().getJid().toBareJid().toString()+": finished mam after "+query.getTotalCount()+" messages");
|
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);
|
mXmppConnectionService.getNotificationService().finishBacklog(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user