omemo / gajim-omemo

Gajim plugin for OMEMO Multi-End Message and Object Encryption
87 stars 7 forks source link

Check for new fingerprints on send button pressed #96

Closed lovetox closed 8 years ago

lovetox commented 8 years ago

Check if there are new fingerprints in the DB on send button pressed.

In the latest commits new fingerprints are only checked if there was no session before and we query for the bundle.

But a PreKeyWhisperMessage from a contact adds also the Fingerprint to our DB and creates a session without ever query the bundle of the contact. So we check now on every send button pressed event if there are new keys added to out DB.