Skip to content

Commit

Permalink
fixup! fixup! fix: clean tom db on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian KOUNE committed Sep 7, 2023
1 parent 30b2b2c commit d5ba179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data/hive/hive_collection_tom_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class HiveCollectionToMDatabase {
Logs().w('Delete database and storage key...');
await const FlutterSecureStorage()
.delete(key: FlutterHiveCollectionsDatabase.cipherStorageKey);
await _collection.deleteFromDisk();
await tomConfigurationsBox.clear();
await Hive.deleteFromDisk();
}
}
1 change: 1 addition & 0 deletions lib/widgets/matrix.dart
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
navigatorContext?.go('/rooms');
} else {
await getIt.get<HiveCollectionToMDatabase>().clear();
await c.clear();
}
}
});
Expand Down

0 comments on commit d5ba179

Please sign in to comment.