feat(ui): improve the message for skipping the event.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -220,8 +220,10 @@ class StreamChannelListController extends PagedValueNotifier<int, Channel> {
|
|||||||
_unsubscribeFromChannelListEvents();
|
_unsubscribeFromChannelListEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
_channelEventSubscription = client.on().skip(1) // skip the initial event
|
_channelEventSubscription =
|
||||||
.listen((event) {
|
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.
|
// Returns early if the event is already handled by the listener.
|
||||||
if (eventListener?.call(event) ?? false) return;
|
if (eventListener?.call(event) ?? false) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user