fix: Allow to broadcast cancels during key verification

This commit is contained in:
Sorunome 2021-02-10 13:01:48 +01:00
parent 9fa36f736b
commit d07b663866
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 4 additions and 1 deletions

View File

@ -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(