changed order of send presence and execute mam queries

This commit is contained in:
Daniel Gultsch 2015-12-12 16:01:33 +01:00
parent 88523bbb50
commit 50817956c2

View File

@ -248,12 +248,12 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
@Override
public void onBind(final Account account) {
account.getRoster().clearPresences();
mJingleConnectionManager.cancelInTransmission();
fetchRosterFromServer(account);
fetchBookmarks(account);
mMessageArchiveService.executePendingQueries(account);
sendPresence(account);
mMessageArchiveService.executePendingQueries(account);
connectMultiModeConversations(account);
mJingleConnectionManager.cancelInTransmission();
syncDirtyContacts(account);
}
};