fix notification "Key null invalidated" on cancel device pairing
This commit is contained in:
parent
26c1878bb9
commit
ae9909f596
16
index.js
16
index.js
|
@ -286,13 +286,15 @@ class PairDropServer {
|
|||
}
|
||||
|
||||
_onPairDeviceCancel(sender) {
|
||||
if (sender.roomKey) {
|
||||
this._removeRoomKey(sender.roomKey);
|
||||
this._send(sender, {
|
||||
type: 'pair-device-canceled',
|
||||
roomKey: sender.roomKey,
|
||||
});
|
||||
}
|
||||
const roomKey = sender.roomKey
|
||||
|
||||
if (!roomKey) return;
|
||||
|
||||
this._removeRoomKey(roomKey);
|
||||
this._send(sender, {
|
||||
type: 'pair-device-canceled',
|
||||
roomKey: roomKey,
|
||||
});
|
||||
}
|
||||
|
||||
_onRegenerateRoomSecret(sender, message) {
|
||||
|
|
Loading…
Reference in New Issue