Remove 'respond to key requests' functionality

This commit is contained in:
Joseph Donofry 2021-07-15 18:08:59 -04:00
parent b158c02e3b
commit 19f2c02eda
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
6 changed files with 2 additions and 50 deletions

View file

@ -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;
}