From 1d8fc18304c418f8dcb50ce1f8d2b84c4bf22fb9 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 22 Jan 2023 05:31:33 +0100 Subject: [PATCH] Warn when no secret can be requested --- src/encryption/Olm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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( http::client()->generate_txn_id(),