mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
fix notification "Key null invalidated" on cancel device pairing
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user