Prevent rogue users from requesting multiple roomKeys

This commit is contained in:
schlagmichdoch 2023-01-22 17:43:54 +01:00
parent c9f57c6fa0
commit 67273bc418
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ class PairDropServer {
_onPairDeviceInitiate(sender) {
let roomSecret = this.getRandomString(64);
let roomKey = this._createRoomKey(sender, roomSecret);
if (sender.roomKey) this._removeRoomKey(sender.roomKey);
sender.roomKey = roomKey;
this._send(sender, {
type: 'pair-device-initiated',