mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
fix: Correctly clear database if it is corrupted
This commit is contained in:
parent
5d218fb2e4
commit
cbb40b6fdb
@ -91,7 +91,7 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
||||
await db.open();
|
||||
} catch (e, s) {
|
||||
Logs().e('Unable to open Hive. Delete and try again...', e, s);
|
||||
await Hive.deleteFromDisk();
|
||||
await db.clear(client.id);
|
||||
await db.open();
|
||||
}
|
||||
Logs().i('Hive database is ready!');
|
||||
|
Loading…
Reference in New Issue
Block a user