fix notification "Key null invalidated" on cancel device pairing

This commit is contained in:
schlagmichdoch 2023-05-11 19:49:57 +02:00
parent 26c1878bb9
commit ae9909f596

View file

@ -286,13 +286,15 @@ class PairDropServer {
} }
_onPairDeviceCancel(sender) { _onPairDeviceCancel(sender) {
if (sender.roomKey) { const roomKey = sender.roomKey
this._removeRoomKey(sender.roomKey);
this._send(sender, { if (!roomKey) return;
type: 'pair-device-canceled',
roomKey: sender.roomKey, this._removeRoomKey(roomKey);
}); this._send(sender, {
} type: 'pair-device-canceled',
roomKey: roomKey,
});
} }
_onRegenerateRoomSecret(sender, message) { _onRegenerateRoomSecret(sender, message) {