chore(llc): remove not needed List.from

This commit is contained in:
Salvatore Giordano
2022-04-04 10:39:23 +02:00
parent ad385c393d
commit 047dce107f
@@ -1586,11 +1586,9 @@ class ChannelClientState {
_subscriptions.add(_channel.on(EventType.memberRemoved).listen((Event e) { _subscriptions.add(_channel.on(EventType.memberRemoved).listen((Event e) {
final user = e.user; final user = e.user;
updateChannelState(channelState.copyWith( updateChannelState(channelState.copyWith(
members: List.from( members: channelState.members
channelState.members .whereNot((m) => m.userId == user!.id)
.whereNot((m) => m.userId == user!.id) .toList(growable: false),
.toList(growable: false),
),
read: channelState.read read: channelState.read
.whereNot((r) => r.user.id == user!.id) .whereNot((r) => r.user.id == user!.id)
.toList(growable: false), .toList(growable: false),