From 6cc38199e0110f97c50694ce7b47b406a3ceebf1 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Thu, 4 May 2023 17:38:51 +0200 Subject: [PATCH] implement auto_accept (#91) and manual unpairing via new Edit Paired Devices Dialog --- index.js | 13 +- public/index.html | 26 +- public/scripts/network.js | 204 ++++++-- public/scripts/ui.js | 480 ++++++++++++----- public/scripts/util.js | 4 + public/styles.css | 169 ++++-- public_included_ws_fallback/index.html | 26 +- .../scripts/network.js | 222 ++++++-- public_included_ws_fallback/scripts/ui.js | 482 +++++++++++++----- public_included_ws_fallback/scripts/util.js | 8 +- public_included_ws_fallback/styles.css | 156 +++++- 11 files changed, 1379 insertions(+), 411 deletions(-) diff --git a/index.js b/index.js index 53f213a4..1414120c 100644 --- a/index.js +++ b/index.js @@ -159,11 +159,8 @@ class PairDropServer { case 'room-secrets': this._onRoomSecrets(sender, message); break; - case 'room-secret-deleted': - this._onRoomSecretDeleted(sender, message); - break; - case 'room-secrets-cleared': - this._onRoomSecretsCleared(sender, message); + case 'room-secrets-deleted': + this._onRoomSecretsDeleted(sender, message); break; case 'pair-device-initiate': this._onPairDeviceInitiate(sender); @@ -213,11 +210,7 @@ class PairDropServer { this._joinSecretRooms(sender, roomSecrets); } - _onRoomSecretDeleted(sender, message) { - this._deleteSecretRoom(sender, message.roomSecret) - } - - _onRoomSecretsCleared(sender, message) { + _onRoomSecretsDeleted(sender, message) { for (let i = 0; i - -