Warn when no secret can be requested
This commit is contained in:
parent
0253aa59c7
commit
1d8fc18304
@ -1613,8 +1613,10 @@ request_cross_signing_keys()
|
|||||||
body[local_user][dev] = secretRequest;
|
body[local_user][dev] = secretRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (body.empty())
|
if (body.empty()) {
|
||||||
|
nhlog::net()->warn("No verified devices to request {} from.", secretName);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
http::client()->send_to_device<mtx::events::msg::SecretRequest>(
|
http::client()->send_to_device<mtx::events::msg::SecretRequest>(
|
||||||
http::client()->generate_txn_id(),
|
http::client()->generate_txn_id(),
|
||||||
|
Loading…
Reference in New Issue
Block a user