From 604cdcec8abf8a8c564111d6f55feaf94486ba6c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 18 Jun 2018 12:56:47 +0300 Subject: 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. --- include/Olm.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/Olm.hpp') 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 -- cgit 1.5.1