chore(llc): remove not needed List.from
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user