fix: Database did not get cleared correctly
This commit is contained in:
parent
01e16506dc
commit
95b060a299
|
|
@ -229,7 +229,28 @@ class HiveCollectionsDatabase extends DatabaseApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> clear() => _collection.deleteFromDisk();
|
Future<void> clear() => Future.wait([
|
||||||
|
_clientBox.clear(),
|
||||||
|
_accountDataBox.clear(),
|
||||||
|
_roomsBox.clear(),
|
||||||
|
_roomStateBox.clear(),
|
||||||
|
_roomMembersBox.clear(),
|
||||||
|
_toDeviceQueueBox.clear(),
|
||||||
|
_roomAccountDataBox.clear(),
|
||||||
|
_inboundGroupSessionsBox.clear(),
|
||||||
|
_outboundGroupSessionsBox.clear(),
|
||||||
|
_olmSessionsBox.clear(),
|
||||||
|
_userDeviceKeysBox.clear(),
|
||||||
|
_userDeviceKeysOutdatedBox.clear(),
|
||||||
|
_userCrossSigningKeysBox.clear(),
|
||||||
|
_ssssCacheBox.clear(),
|
||||||
|
_presencesBox.clear(),
|
||||||
|
_timelineFragmentsBox.clear(),
|
||||||
|
_eventsBox.clear(),
|
||||||
|
_seenDeviceIdsBox.clear(),
|
||||||
|
_seenDeviceKeysBox.clear(),
|
||||||
|
_collection.deleteFromDisk(),
|
||||||
|
]);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> clearCache() => transaction(() async {
|
Future<void> clearCache() => transaction(() async {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue