Merge branch 'v4' into release/4.0.0-beta.0
This commit is contained in:
@@ -220,7 +220,10 @@ class StreamChannelListController extends PagedValueNotifier<int, Channel> {
|
|||||||
_unsubscribeFromChannelListEvents();
|
_unsubscribeFromChannelListEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
_channelEventSubscription = client.on().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.
|
// 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