if devices are paired a second time, the old roomSecret is deleted upon saving the new one.

This commit is contained in:
schlagmichdoch 2023-02-11 00:52:37 +01:00
parent 414cc9aa57
commit b933ef151a
5 changed files with 26 additions and 18 deletions

View file

@ -263,10 +263,12 @@ class PairDropServer {
this._send(sender, {
type: 'pair-device-joined',
roomSecret: roomSecret,
peerId: creator.id
});
this._send(creator, {
type: 'pair-device-joined',
roomSecret: roomSecret,
peerId: sender.id
});
this._joinRoom(sender, 'secret', roomSecret);
this._removeRoomKey(sender.roomKey);