diff --git a/src/domain/session/settings/SettingsViewModel.js b/src/domain/session/settings/SettingsViewModel.js index eaffeb12..9ce340f1 100644 --- a/src/domain/session/settings/SettingsViewModel.js +++ b/src/domain/session/settings/SettingsViewModel.js @@ -64,10 +64,6 @@ export class SettingsViewModel extends ViewModel { this.navigation.push("session", true); } - setupDehydratedDevice(key) { - return this._session.setupDehydratedDevice(key); - } - get isLoggingOut() { return this._isLoggingOut; } setSentImageSizeLimit(size) { diff --git a/src/platform/web/ui/session/settings/SettingsView.js b/src/platform/web/ui/session/settings/SettingsView.js index 87789811..e969ba40 100644 --- a/src/platform/web/ui/session/settings/SettingsView.js +++ b/src/platform/web/ui/session/settings/SettingsView.js @@ -49,19 +49,6 @@ export class SettingsView extends TemplateView { }, disabled: vm => vm.isLoggingOut }, vm.i18n`Log out`)), - row(t, "", t.button({ - onClick: async () => { - const key = prompt(vm.i18n`Enter the key to encrypt the dehydrated device`); - if (key) { - try { - const deviceId = await vm.setupDehydratedDevice(key); - alert(`Successfully set up dehydrated device with id ${deviceId}`); - } catch (err) { - alert(`Failed to set up dehydrated device: ${err.message}`); - } - } - }, - }, vm.i18n`Set up dehydrated device`)) ); settingNodes.push( t.h3("Session Backup"),