From d07b663866691b75e2b49adb1eb90a51337ba816 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Wed, 10 Feb 2021 13:01:48 +0100 Subject: [PATCH] fix: Allow to broadcast cancels during key verification --- lib/encryption/utils/key_verification.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/encryption/utils/key_verification.dart b/lib/encryption/utils/key_verification.dart index cac2b6a4..2089ee63 100644 --- a/lib/encryption/utils/key_verification.dart +++ b/lib/encryption/utils/key_verification.dart @@ -602,7 +602,10 @@ class KeyVerification { } else { Logs().i('[Key Verification] Sending to ${userId} device ${deviceId}...'); if (deviceId == '*') { - if ({EventTypes.KeyVerificationRequest}.contains(type)) { + if ({ + EventTypes.KeyVerificationRequest, + EventTypes.KeyVerificationCancel, + }.contains(type)) { await client.sendToDevicesOfUserIds({userId}, type, payload); } else { Logs().e(