mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-28 18:30:39 +00:00
fix notification "Key null invalidated" on cancel device pairing
This commit is contained in:
@@ -286,14 +286,16 @@ class PairDropServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onPairDeviceCancel(sender) {
|
_onPairDeviceCancel(sender) {
|
||||||
if (sender.roomKey) {
|
const roomKey = sender.roomKey
|
||||||
this._removeRoomKey(sender.roomKey);
|
|
||||||
|
if (!roomKey) return;
|
||||||
|
|
||||||
|
this._removeRoomKey(roomKey);
|
||||||
this._send(sender, {
|
this._send(sender, {
|
||||||
type: 'pair-device-canceled',
|
type: 'pair-device-canceled',
|
||||||
roomKey: sender.roomKey,
|
roomKey: roomKey,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
_onRegenerateRoomSecret(sender, message) {
|
_onRegenerateRoomSecret(sender, message) {
|
||||||
const oldRoomSecret = message.roomSecret;
|
const oldRoomSecret = message.roomSecret;
|
||||||
|
|||||||
Reference in New Issue
Block a user