mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
show error
This commit is contained in:
parent
f58a3ee975
commit
6375574a56
@ -139,9 +139,13 @@ export class SessionStatusViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enterPassphrase(passphrase) {
|
async enterPassphrase(passphrase) {
|
||||||
if (passphrase) {
|
if (passphrase) {
|
||||||
this._session.enableSecretStorage("recoverykey", passphrase);
|
try {
|
||||||
|
await this._session.enableSecretStorage("recoverykey", passphrase);
|
||||||
|
} catch (err) {
|
||||||
|
alert(`Could not set up secret storage: ${err.message}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user