fix: Allow to broadcast cancels during key verification
This commit is contained in:
parent
9fa36f736b
commit
d07b663866
|
|
@ -602,7 +602,10 @@ class KeyVerification {
|
||||||
} else {
|
} else {
|
||||||
Logs().i('[Key Verification] Sending to ${userId} device ${deviceId}...');
|
Logs().i('[Key Verification] Sending to ${userId} device ${deviceId}...');
|
||||||
if (deviceId == '*') {
|
if (deviceId == '*') {
|
||||||
if ({EventTypes.KeyVerificationRequest}.contains(type)) {
|
if ({
|
||||||
|
EventTypes.KeyVerificationRequest,
|
||||||
|
EventTypes.KeyVerificationCancel,
|
||||||
|
}.contains(type)) {
|
||||||
await client.sendToDevicesOfUserIds({userId}, type, payload);
|
await client.sendToDevicesOfUserIds({userId}, type, payload);
|
||||||
} else {
|
} else {
|
||||||
Logs().e(
|
Logs().e(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue