mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 07:16:18 -04:00
remove unused method _onRoomSecretDelete
This commit is contained in:
parent
1c3a8bfe1d
commit
9f182eced3
1 changed files with 2 additions and 10 deletions
|
@ -719,7 +719,6 @@ class PairDeviceDialog extends Dialog {
|
||||||
Events.on('pair-device-joined', e => this._pairDeviceJoined(e.detail));
|
Events.on('pair-device-joined', e => this._pairDeviceJoined(e.detail));
|
||||||
Events.on('pair-device-join-key-invalid', _ => this._pairDeviceJoinKeyInvalid());
|
Events.on('pair-device-join-key-invalid', _ => this._pairDeviceJoinKeyInvalid());
|
||||||
Events.on('pair-device-canceled', e => this._pairDeviceCanceled(e.detail));
|
Events.on('pair-device-canceled', e => this._pairDeviceCanceled(e.detail));
|
||||||
Events.on('room-secret-delete', e => this._onRoomSecretDelete(e.detail))
|
|
||||||
Events.on('clear-room-secrets', e => this._onClearRoomSecrets(e.detail))
|
Events.on('clear-room-secrets', e => this._onClearRoomSecrets(e.detail))
|
||||||
Events.on('secret-room-deleted', e => this._onSecretRoomDeleted(e.detail));
|
Events.on('secret-room-deleted', e => this._onSecretRoomDeleted(e.detail));
|
||||||
this.$el.addEventListener('paste', e => this._onPaste(e));
|
this.$el.addEventListener('paste', e => this._onPaste(e));
|
||||||
|
@ -851,9 +850,9 @@ class PairDeviceDialog extends Dialog {
|
||||||
this.hide();
|
this.hide();
|
||||||
PersistentStorage.addRoomSecret(roomSecret).then(_ => {
|
PersistentStorage.addRoomSecret(roomSecret).then(_ => {
|
||||||
Events.fire('notify-user', 'Devices paired successfully.')
|
Events.fire('notify-user', 'Devices paired successfully.')
|
||||||
this._evaluateNumberRoomSecrets()
|
this._evaluateNumberRoomSecrets();
|
||||||
}).finally(_ => {
|
}).finally(_ => {
|
||||||
this._cleanUp()
|
this._cleanUp();
|
||||||
})
|
})
|
||||||
.catch(_ => {
|
.catch(_ => {
|
||||||
Events.fire('notify-user', 'Paired devices are not persistent.')
|
Events.fire('notify-user', 'Paired devices are not persistent.')
|
||||||
|
@ -883,13 +882,6 @@ class PairDeviceDialog extends Dialog {
|
||||||
this.$inputRoomKeyChars.forEach(el => el.setAttribute("disabled", ""));
|
this.$inputRoomKeyChars.forEach(el => el.setAttribute("disabled", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
_onRoomSecretDelete(roomSecret) {
|
|
||||||
PersistentStorage.deleteRoomSecret(roomSecret).then(_ => {
|
|
||||||
Events.fire('room-secret-deleted', roomSecret)
|
|
||||||
this._evaluateNumberRoomSecrets();
|
|
||||||
}).catch(_ => PersistentStorage.logBrowserNotCapable());
|
|
||||||
}
|
|
||||||
|
|
||||||
_onClearRoomSecrets() {
|
_onClearRoomSecrets() {
|
||||||
PersistentStorage.getAllRoomSecrets().then(roomSecrets => {
|
PersistentStorage.getAllRoomSecrets().then(roomSecrets => {
|
||||||
Events.fire('room-secrets-cleared', roomSecrets);
|
Events.fire('room-secrets-cleared', roomSecrets);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue