fix: BoxCollection not re-assignable

- make BoxCollection field in Hive collection DB re-assignable
- used by session import

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
This commit is contained in:
TheOneWithTheBraid 2022-06-10 06:17:29 +02:00
parent dacbe0ac6e
commit 3f0a177abf
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class HiveCollectionsDatabase extends DatabaseApi {
final String name; final String name;
final String path; final String path;
final HiveCipher? key; final HiveCipher? key;
late final BoxCollection _collection; late BoxCollection _collection;
late CollectionBox<String> _clientBox; late CollectionBox<String> _clientBox;
late CollectionBox<Map> _accountDataBox; late CollectionBox<Map> _accountDataBox;
late CollectionBox<Map> _roomsBox; late CollectionBox<Map> _roomsBox;