fixed session objects not being build on start up

This commit is contained in:
Daniel Gultsch 2015-10-30 12:05:21 +01:00
parent 6a458b853c
commit 34bcc59f72
2 changed files with 1 additions and 2 deletions

View File

@ -323,7 +323,6 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
setTrustOnSessions(jid, newDevices, XmppAxolotlSession.Trust.INACTIVE_UNTRUSTED,
XmppAxolotlSession.Trust.UNTRUSTED);
this.deviceIds.put(jid, deviceIds);
findDevicesWithoutSession(jid);
mXmppConnectionService.keyStatusUpdated(null);
}

View File

@ -1088,8 +1088,8 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
public void run() {
Log.d(Config.LOGTAG, "restoring roster");
for (Account account : accounts) {
account.initAccountServices(XmppConnectionService.this);
databaseBackend.readRoster(account.getRoster());
account.initAccountServices(XmppConnectionService.this); //roster needs to be loaded at this stage
}
getBitmapCache().evictAll();
Looper.prepare();