conversations-classic/src/main/java/eu/siacs/conversations/crypto
Andreas Straub 35714d3d08 Ensure that available sessions are always used
Any time a new session is established, call syncRosterToDisk() to ensure
that on subsequent restoreFromDatabase() calls, the roster is actually
available. This is important so that initAccountServices() can properly
initialize the SessionMap. This prevents a race condition where after
adding a new account and initiating sessions with it, if the app is
killed (e.g. by reinstall) before triggering a syncRosterToDisk(),
subsequent restores will not have the roster available, leading to
missing XmppAxolotlSessions in the SessionMap cache. As a result of
this, a new session was initiated when sending a new message, and
received messages could not be tagged with the originating session's
fingerprint.

As an added sanity check, go to the database to confirm no records are
present before creating fresh XmppAxolotlSession objects (both in the
sending and receiving case).
2015-07-19 22:23:27 +02:00
..
axolotl Ensure that available sessions are always used 2015-07-19 22:23:27 +02:00
sasl added null check in sasl response verifier 2015-07-10 12:16:30 +02:00
OtrService.java renamed OtrEngine to OtrService 2015-05-26 04:36:32 +02:00
PgpEngine.java renamed HttpConnection to HttpDownloadConnection 2015-07-10 15:14:13 +02:00