summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index d42d0a61..38d2c8e9 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -1257,7 +1257,8 @@ ChatPage::decryptDownloadedSecrets(mtx::secret_storage::AesHmacSha2KeyDescriptio json j = deviceKeys->master_keys; j.erase("signatures"); j.erase("unsigned"); - mtx::crypto::CrossSigningKeys master_key = j; + mtx::crypto::CrossSigningKeys master_key = + j.get<mtx::crypto::CrossSigningKeys>(); master_key.signatures[http::client()->user_id().to_string()] ["ed25519:" + http::client()->device_id()] = olm::client()->sign_message(j.dump());