Skip to content

Commit

Permalink
feat(ui): improve the message for skipping the event.
Browse files Browse the repository at this point in the history
Signed-off-by: xsahil03x <[email protected]>
  • Loading branch information
xsahil03x committed Mar 23, 2022
1 parent 0a4eb0a commit 67dad76
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 67dad76

Please sign in to comment.