Save the olm account after we create new one-time keys

Otherwise after a restart the old account will be loaded and we
won't be able to decrypt messages from devices using the new one-time keys.

Also new one-time key upload requests will fail due to conflicts with
the existing keys with the same keyid.
This commit is contained in:
Konstantinos Sideris 2018-06-18 12:56:47 +03:00
parent 4514d13948
commit 604cdcec8a
3 changed files with 15 additions and 2 deletions

View file

@ -75,4 +75,7 @@ encrypt_group_message(const std::string &room_id,
const std::string &device_id,
const std::string &body);
void
mark_keys_as_published();
} // namespace olm