fix: Properly clear in-memory outbound sessions when clearing cache

This commit is contained in:
Sorunome 2020-12-31 12:58:41 +01:00
parent ed8af418f0
commit f6589f9596
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 0 deletions

View File

@ -1746,6 +1746,7 @@ sort order of ${prevState.sortOrder}. This should never happen...''');
prevBatch = null; prevBatch = null;
rooms.clear(); rooms.clear();
await database?.clearCache(id); await database?.clearCache(id);
encryption?.keyManager?.clearOutboundGroupSessions();
onCacheCleared.add(true); onCacheCleared.add(true);
// Restart the syncloop // Restart the syncloop
backgroundSync = true; backgroundSync = true;