Merge branch 'krille/dont-upload-keys-after-logout' into 'main'
fix: Do not upload keys after logout Closes #213 See merge request famedly/company/frontend/famedlysdk!866
This commit is contained in:
commit
3130931f0d
|
|
@ -236,6 +236,8 @@ class OlmManager {
|
|||
if (updateDatabase) {
|
||||
await client.database?.updateClientKeys(pickledOlmAccount!);
|
||||
}
|
||||
// Workaround: Make sure we stop if we got logged out in the meantime.
|
||||
if (!client.isLogged()) return true;
|
||||
final response = await client.uploadKeys(
|
||||
deviceKeys: uploadDeviceKeys
|
||||
? MatrixDeviceKeys.fromJson(keysContent['device_keys'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue