Adjust secret storage to work before sync
This adjusts to changed JS SDK APIs that allow secret storage to optionally ask the server for any account data needed at login. Fixes https://github.com/vector-im/riot-web/issues/11901
This commit is contained in:
parent
e88f062f01
commit
4a82e86859
2 changed files with 4 additions and 4 deletions
|
@ -107,7 +107,7 @@ export async function accessSecretStorage(func = async () => { }) {
|
|||
cachingAllowed = true;
|
||||
|
||||
try {
|
||||
if (!cli.hasSecretStorageKey()) {
|
||||
if (!await cli.hasSecretStorageKey()) {
|
||||
// This dialog calls bootstrap itself after guiding the user through
|
||||
// passphrase creation.
|
||||
const { finished } = Modal.createTrackedDialogAsync('Create Secret Storage dialog', '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue