mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
if devices are paired a second time, the old roomSecret is deleted upon saving the new one.
This commit is contained in:
parent
414cc9aa57
commit
b933ef151a
5 changed files with 26 additions and 18 deletions
2
index.js
2
index.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue