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) {
|
_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),
|
||||||
|
|||||||
Reference in New Issue
Block a user