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 @Override
public void onBind(final Account account) { public void onBind(final Account account) {
account.getRoster().clearPresences(); account.getRoster().clearPresences();
mJingleConnectionManager.cancelInTransmission();
fetchRosterFromServer(account); fetchRosterFromServer(account);
fetchBookmarks(account); fetchBookmarks(account);
mMessageArchiveService.executePendingQueries(account);
sendPresence(account); sendPresence(account);
mMessageArchiveService.executePendingQueries(account);
connectMultiModeConversations(account); connectMultiModeConversations(account);
mJingleConnectionManager.cancelInTransmission();
syncDirtyContacts(account); syncDirtyContacts(account);
} }
}; };