chore: Make sure account data and device keys is loaded when using isCached

This commit is contained in:
Christian Pauly 2022-05-12 13:48:13 +02:00
parent 7840225718
commit 5fbd0a73a4
1 changed files with 2 additions and 0 deletions

View File

@ -558,6 +558,8 @@ class KeyManager {
if (!enabled) {
return false;
}
await client.accountDataLoading;
await client.userDeviceKeysLoading;
return (await encryption.ssss.getCached(megolmKey)) != null;
}