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) {
final user = e.user;
updateChannelState(channelState.copyWith(
members: List.from(
channelState.members
.whereNot((m) => m.userId == user!.id)
.toList(growable: false),
),
members: channelState.members
.whereNot((m) => m.userId == user!.id)
.toList(growable: false),
read: channelState.read
.whereNot((r) => r.user.id == user!.id)
.toList(growable: false),