diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-18 12:56:47 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-18 12:56:47 +0300 |
commit | 604cdcec8abf8a8c564111d6f55feaf94486ba6c (patch) | |
tree | 89501231f6f57e6ba9a7a3a8bf63ab025a325c8e /include/Olm.hpp | |
parent | Improve logging a bit (diff) | |
download | nheko-604cdcec8abf8a8c564111d6f55feaf94486ba6c.tar.xz |
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.
Diffstat (limited to 'include/Olm.hpp')
-rw-r--r-- | include/Olm.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Olm.hpp b/include/Olm.hpp index 6f871628..eb7f9061 100644 --- a/include/Olm.hpp +++ b/include/Olm.hpp @@ -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 |