always do contact sync in background

This commit is contained in:
Christian Schneppe 2018-11-23 13:23:10 +01:00
parent 24e5d84e4e
commit 9d72ef6f32
2 changed files with 2 additions and 2 deletions

View file

@ -307,7 +307,7 @@ public class XmppConnectionService extends Service {
}
account.getRoster().clearPresences();
mJingleConnectionManager.cancelInTransmission();
mQuickConversationsService.considerSync();
mQuickConversationsService.considerSyncBackground(false);
fetchRosterFromServer(account);
if (!account.getXmppConnection().getFeatures().bookmarksConversion()) {
fetchBookmarks(account);

View file

@ -735,7 +735,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
@Override
protected void onBackendConnected() {
xmppConnectionService.getQuickConversationsService().considerSync();
xmppConnectionService.getQuickConversationsService().considerSyncBackground(false);
if (mPostponedActivityResult != null) {
onActivityResult(mPostponedActivityResult.first, RESULT_OK, mPostponedActivityResult.second);
this.mPostponedActivityResult = null;