vanitasvitae / Smack

A modular and portable open source XMPP client library written in Java for Android and Java (SE) VMs
https://igniterealtime.org/projects/smack/
Apache License 2.0
16 stars 3 forks source link

IdentityKeys are not always immediately saved when trying to trust identities #14

Closed vanitasvitae closed 7 years ago

vanitasvitae commented 7 years ago

This is not reliable reproducible, which makes it very hard to debug. I assume, that OmemoService.processBundle() writes the identityKey lazy to disk, so the when the key is requested for trusting, it is null. I'm not yet sure though.

Restarting the client helps.

vanitasvitae commented 7 years ago

It might be worth to take a look at OmemoStore.initializeOmemoSessions(). Maybe parts of this method have to be called for new sessions?

vanitasvitae commented 7 years ago

Fixed