Merge branch 'krille/wait-for-devicekeys' into 'main'
chore: Make sure account data and device keys is loaded when using isCached See merge request famedly/company/frontend/famedlysdk!1037
This commit is contained in:
commit
4fec950dda
|
|
@ -558,6 +558,8 @@ class KeyManager {
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
await client.accountDataLoading;
|
||||||
|
await client.userDeviceKeysLoading;
|
||||||
return (await encryption.ssss.getCached(megolmKey)) != null;
|
return (await encryption.ssss.getCached(megolmKey)) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue