execute pending mam queries every time we come online
This commit is contained in:
parent
5d3ee60ca4
commit
dc00a92499
|
@ -262,7 +262,6 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||||
if (mPushManagementService.available(account)) {
|
if (mPushManagementService.available(account)) {
|
||||||
mPushManagementService.registerPushTokenOnServer(account);
|
mPushManagementService.registerPushTokenOnServer(account);
|
||||||
}
|
}
|
||||||
mMessageArchiveService.executePendingQueries(account);
|
|
||||||
connectMultiModeConversations(account);
|
connectMultiModeConversations(account);
|
||||||
syncDirtyContacts(account);
|
syncDirtyContacts(account);
|
||||||
}
|
}
|
||||||
|
@ -276,6 +275,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||||
mOnAccountUpdate.onAccountUpdate();
|
mOnAccountUpdate.onAccountUpdate();
|
||||||
}
|
}
|
||||||
if (account.getStatus() == Account.State.ONLINE) {
|
if (account.getStatus() == Account.State.ONLINE) {
|
||||||
|
mMessageArchiveService.executePendingQueries(account);
|
||||||
if (connection != null && connection.getFeatures().csi()) {
|
if (connection != null && connection.getFeatures().csi()) {
|
||||||
if (checkListeners()) {
|
if (checkListeners()) {
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid() + " sending csi//inactive");
|
Log.d(Config.LOGTAG, account.getJid().toBareJid() + " sending csi//inactive");
|
||||||
|
|
Loading…
Reference in a new issue