remove dehydrated device test button from settings

This commit is contained in:
Bruno Windels 2021-10-29 15:47:14 +02:00
parent 6273d723f1
commit 3b3751c827
2 changed files with 0 additions and 17 deletions

View File

@ -64,10 +64,6 @@ export class SettingsViewModel extends ViewModel {
this.navigation.push("session", true); this.navigation.push("session", true);
} }
setupDehydratedDevice(key) {
return this._session.setupDehydratedDevice(key);
}
get isLoggingOut() { return this._isLoggingOut; } get isLoggingOut() { return this._isLoggingOut; }
setSentImageSizeLimit(size) { setSentImageSizeLimit(size) {

View File

@ -49,19 +49,6 @@ export class SettingsView extends TemplateView {
}, },
disabled: vm => vm.isLoggingOut disabled: vm => vm.isLoggingOut
}, vm.i18n`Log out`)), }, 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( settingNodes.push(
t.h3("Session Backup"), t.h3("Session Backup"),