intermediate
This commit is contained in:
@@ -83,10 +83,6 @@ class ChatArchiveSearchRepository extends _$ChatArchiveSearchRepository {
|
||||
_streamController = StreamController();
|
||||
_searchDatabase = ref.watch(chatSearchDatabaseProvider);
|
||||
|
||||
ref.onDispose(() async {
|
||||
await _streamController.close();
|
||||
});
|
||||
|
||||
// populate with initial chats
|
||||
await _searchDatabase.searchDao.deleteAllChats();
|
||||
await _searchDatabase.searchDao.indexChats(await _availableChats());
|
||||
@@ -112,6 +108,7 @@ class ChatArchiveSearchRepository extends _$ChatArchiveSearchRepository {
|
||||
|
||||
ref.onDispose(() async {
|
||||
await changeStreamSubscription.cancel();
|
||||
await _streamController.close();
|
||||
});
|
||||
|
||||
yield* _streamController.stream;
|
||||
|
||||
@@ -7,7 +7,7 @@ part of 'search.dart';
|
||||
// **************************************************************************
|
||||
|
||||
String _$chatArchiveSearchRepositoryHash() =>
|
||||
r'a3decc7975bf49995b20ea578db3c08b69f7c03c';
|
||||
r'd7174cfb877c61ee4e9580f44d7ffd11bf3b4b60';
|
||||
|
||||
/// See also [ChatArchiveSearchRepository].
|
||||
@ProviderFor(ChatArchiveSearchRepository)
|
||||
|
||||
Reference in New Issue
Block a user