chore: Update SDK
This commit is contained in:
parent
8793b41376
commit
991018d86a
8 changed files with 15 additions and 17 deletions
|
|
@ -16,7 +16,7 @@ extension LocalizedBody on Event {
|
|||
}
|
||||
|
||||
IconData get statusIcon {
|
||||
switch (status) {
|
||||
switch (status.intValue) {
|
||||
case -1:
|
||||
return Icons.error_outline;
|
||||
case 0:
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
|||
}
|
||||
|
||||
@override
|
||||
Future<void> clear(int clientId) async {
|
||||
await super.clear(clientId);
|
||||
Future<void> clear() async {
|
||||
await super.clear();
|
||||
await _customBox.deleteAll(_customBox.keys);
|
||||
await _customBox.close();
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ class FlutterMatrixHiveStore extends FamedlySdkHiveDatabase {
|
|||
await db.open();
|
||||
} catch (e, s) {
|
||||
Logs().e('Unable to open Hive. Delete and try again...', e, s);
|
||||
await db.clear(client.id);
|
||||
await db.clear();
|
||||
await db.open();
|
||||
}
|
||||
return db;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue