fix: clearCache does not clear room account data
This commit is contained in:
parent
131425730c
commit
4c8d7c959c
|
|
@ -270,6 +270,7 @@ class HiveCollectionsDatabase extends DatabaseApi {
|
|||
Future<void> clearCache() => transaction(() async {
|
||||
await _roomsBox.clear();
|
||||
await _accountDataBox.clear();
|
||||
await _roomAccountDataBox.clear();
|
||||
await _roomStateBox.clear();
|
||||
await _roomMembersBox.clear();
|
||||
await _eventsBox.clear();
|
||||
|
|
|
|||
|
|
@ -286,6 +286,7 @@ class FamedlySdkHiveDatabase extends DatabaseApi {
|
|||
Future<void> clearCache() async {
|
||||
await _roomsBox.deleteAll(_roomsBox.keys);
|
||||
await _accountDataBox.deleteAll(_accountDataBox.keys);
|
||||
await _roomAccountDataBox.deleteAll(_roomAccountDataBox.keys);
|
||||
await _roomStateBox.deleteAll(_roomStateBox.keys);
|
||||
await _roomMembersBox.deleteAll(_roomMembersBox.keys);
|
||||
await _eventsBox.deleteAll(_eventsBox.keys);
|
||||
|
|
|
|||
|
|
@ -272,6 +272,7 @@ class MatrixSdkDatabase extends DatabaseApi {
|
|||
Future<void> clearCache() => transaction(() async {
|
||||
await _roomsBox.clear();
|
||||
await _accountDataBox.clear();
|
||||
await _roomAccountDataBox.clear();
|
||||
await _preloadRoomStateBox.clear();
|
||||
await _nonPreloadRoomStateBox.clear();
|
||||
await _roomMembersBox.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue