mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 07:12:15 +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) {
|
_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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user