update event listeners

This commit is contained in:
Salvatore Giordano
2020-05-22 16:33:47 +02:00
parent c080c3f712
commit 24eca0a9c3
2 changed files with 20 additions and 21 deletions
+17
View File
@@ -370,6 +370,23 @@ class _ChannelListViewState extends State<ChannelListView>
}
});
});
final client = StreamChat.of(context).client;
client
.on(
EventType.connectionRecovered,
EventType.notificationAddedToChannel,
EventType.channelVisible,
)
.listen((event) {
channelsBloc.queryChannels(
filter: widget.filter,
sortOptions: widget.sort,
paginationParams: widget.pagination,
options: widget.options,
);
});
}
@override