@@ -244,10 +244,11 @@ class StreamChannelListController extends PagedValueNotifier<int, Channel> {
|
|||||||
_unsubscribeFromChannelListEvents();
|
_unsubscribeFromChannelListEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
_channelEventSubscription =
|
_channelEventSubscription = client
|
||||||
client.on().skip(1) // Skipping the last emitted event.
|
.on()
|
||||||
// We only need to handle the latest events.
|
.skip(1) // Skipping the last emitted event.
|
||||||
.listen((event) {
|
// We only need to handle the latest events.
|
||||||
|
.listen((event) {
|
||||||
// Only handle the event if the value is in success state.
|
// Only handle the event if the value is in success state.
|
||||||
if (value.isNotSuccess) return;
|
if (value.isNotSuccess) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user