chore: Make sure account data and device keys is loaded when using isCached
This commit is contained in:
parent
7840225718
commit
5fbd0a73a4
|
|
@ -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