feat(ui): improve the message for skipping the event.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-03-23 16:33:20 +05:30
committed by xsahil03x
parent 0a4eb0a171
commit 67dad76e46
@@ -220,8 +220,10 @@ class StreamChannelListController extends PagedValueNotifier<int, Channel> {
_unsubscribeFromChannelListEvents();
}
_channelEventSubscription = client.on().skip(1) // skip the initial event
.listen((event) {
_channelEventSubscription =
client.on().skip(1) // Skipping the last emitted event.
// We only need to handle the latest events.
.listen((event) {
// Returns early if the event is already handled by the listener.
if (eventListener?.call(event) ?? false) return;