fix: Allow to broadcast cancels during key verification
This commit is contained in:
parent
9fa36f736b
commit
d07b663866
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue