Warn when no secret can be requested

This commit is contained in:
Nicolas Werner 2023-01-22 05:31:33 +01:00
parent 0253aa59c7
commit 1d8fc18304
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -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(),