count all messages in a query
This commit is contained in:
parent
1274b0ef39
commit
0911669b07
|
@ -271,7 +271,7 @@ public class MessageParser extends AbstractParser implements
|
|||
packet = f.first;
|
||||
isForwarded = true;
|
||||
serverMsgId = result.getAttribute("id");
|
||||
query.incrementTotalCount();
|
||||
query.incrementMessageCount();
|
||||
} else if (query != null) {
|
||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": received mam result from invalid sender");
|
||||
return;
|
||||
|
@ -411,9 +411,7 @@ public class MessageParser extends AbstractParser implements
|
|||
}
|
||||
}
|
||||
|
||||
if (query != null) {
|
||||
query.incrementMessageCount();
|
||||
} else {
|
||||
if (query == null) {
|
||||
mXmppConnectionService.updateConversationUi();
|
||||
}
|
||||
|
||||
|
|
|
@ -345,12 +345,9 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||
return this.account;
|
||||
}
|
||||
|
||||
public void incrementTotalCount() {
|
||||
this.totalCount++;
|
||||
}
|
||||
|
||||
public void incrementMessageCount() {
|
||||
this.messageCount++;
|
||||
this.totalCount++;
|
||||
}
|
||||
|
||||
public int getTotalCount() {
|
||||
|
|
Loading…
Reference in a new issue