summary refs log tree commit diff
path: root/src/Olm.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-24 23:24:28 +0000
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-24 23:24:28 +0000
commitd55f7ea12b221bcd1861356bbc6b8763c2191002 (patch)
tree4887df15c8da20f439fbf22a89caf2087ff707e3 /src/Olm.cpp
parentFix edge case that could lead to no new one time keys being uploaded (diff)
parentUpdate translations (diff)
downloadnheko-d55f7ea12b221bcd1861356bbc6b8763c2191002.tar.xz
Merge branch 'remove_key_response_option' into 'master'
Remove 'respond to key requests' functionality

See merge request nheko-reborn/nheko!10
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 0c9962f9..69503e6e 100644 --- a/src/Olm.cpp +++ b/src/Olm.cpp
@@ -964,13 +964,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; }