diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-22 05:31:33 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-01-22 05:31:33 +0100 |
commit | 1d8fc18304c418f8dcb50ce1f8d2b84c4bf22fb9 (patch) | |
tree | 4da68f007399423934bf627962fd42064c131721 /src | |
parent | Skip empty requests for cross-signing keys when user only has one device. (diff) | |
download | nheko-1d8fc18304c418f8dcb50ce1f8d2b84c4bf22fb9.tar.xz |
Warn when no secret can be requested
Diffstat (limited to 'src')
-rw-r--r-- | src/encryption/Olm.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index b5576418..41dde1b9 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -1613,8 +1613,10 @@ request_cross_signing_keys() body[local_user][dev] = secretRequest; } - if (body.empty()) + if (body.empty()) { + nhlog::net()->warn("No verified devices to request {} from.", secretName); return; + } http::client()->send_to_device<mtx::events::msg::SecretRequest>( http::client()->generate_txn_id(), |