summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2021-07-15 18:08:59 -0400
committerJoseph Donofry <joedonofry@gmail.com>2021-07-15 18:08:59 -0400
commit19f2c02eda12290c2e227086bd6ebc4b3284375c (patch)
tree7f22f457d1bd301324205702cd584b825ed0878e /src/Olm.cpp
parentFix warning by deleting code I don't understand (diff)
downloadnheko-19f2c02eda12290c2e227086bd6ebc4b3284375c.tar.xz
Remove 'respond to key requests' functionality
Diffstat (limited to 'src/Olm.cpp')
-rw-r--r--src/Olm.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Olm.cpp b/src/Olm.cpp

index ff4c883b..4a403cd0 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -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; }