Remove 'respond to key requests' functionality
This commit is contained in:
parent
b158c02e3b
commit
19f2c02eda
6 changed files with 2 additions and 50 deletions
|
|
@ -882,13 +882,12 @@ handle_key_request_message(const mtx::events::DeviceEvent<mtx::events::msg::KeyR
|
|||
}
|
||||
}
|
||||
|
||||
if (!verifiedDevice && !shouldSeeKeys &&
|
||||
!utils::respondsToKeyRequests(req.content.room_id)) {
|
||||
if (!verifiedDevice && !shouldSeeKeys) {
|
||||
nhlog::crypto()->debug("ignoring key request for room {}", req.content.room_id);
|
||||
return;
|
||||
}
|
||||
|
||||
if (verifiedDevice || utils::respondsToKeyRequests(req.content.room_id)) {
|
||||
if (verifiedDevice) {
|
||||
// share the minimum index we have
|
||||
minimumIndex = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue