Merge branch 'soru/clear-in-memory-outbound-cache-properly' into 'main'

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

See merge request famedly/famedlysdk!597
This commit is contained in:
Krille Fear 2020-12-31 13:24:25 +00:00
commit 192c406cdf
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;