liste for notificationRemovedFromChannel
This commit is contained in:
@@ -140,6 +140,13 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
||||
await channel.watch();
|
||||
_channelsController.add(List.from(channels..insert(0, channel)));
|
||||
}));
|
||||
|
||||
_subscriptions.add(
|
||||
client.on(EventType.notificationRemovedFromChannel).listen((e) async {
|
||||
final channelModel = e.channel;
|
||||
_channelsController.add(
|
||||
List.from(channels..removeWhere((c) => c.cid == channelModel.cid)));
|
||||
}));
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user