mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
fix notification "Key null invalidated" on cancel device pairing
This commit is contained in:
parent
26c1878bb9
commit
ae9909f596
1 changed files with 9 additions and 7 deletions
10
index.js
10
index.js
|
@ -286,14 +286,16 @@ class PairDropServer {
|
|||
}
|
||||
|
||||
_onPairDeviceCancel(sender) {
|
||||
if (sender.roomKey) {
|
||||
this._removeRoomKey(sender.roomKey);
|
||||
const roomKey = sender.roomKey
|
||||
|
||||
if (!roomKey) return;
|
||||
|
||||
this._removeRoomKey(roomKey);
|
||||
this._send(sender, {
|
||||
type: 'pair-device-canceled',
|
||||
roomKey: sender.roomKey,
|
||||
roomKey: roomKey,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
_onRegenerateRoomSecret(sender, message) {
|
||||
const oldRoomSecret = message.roomSecret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue