fix(llc): merge channel in channel.update event

Signed-off-by: xsahil03x <xdsahil@gmail.com>
This commit is contained in:
Sahil Kumar
2022-03-31 15:37:29 +05:30
committed by xsahil03x
parent 604546db38
commit 1a64d045ee
2 changed files with 2 additions and 2 deletions
@@ -1598,7 +1598,7 @@ class ChannelClientState {
_subscriptions.add(_channel.on(EventType.channelUpdated).listen((Event e) {
final channel = e.channel!;
updateChannelState(channelState.copyWith(
channel: channel,
channel: channelState.channel?.merge(channel),
members: channel.members,
));
}));
@@ -172,7 +172,7 @@ class ChannelModel {
updatedAt: other.updatedAt,
deletedAt: other.deletedAt,
memberCount: other.memberCount,
extraData: other.extraData,
extraData: {...extraData, ...other.extraData},
team: other.team,
cooldown: other.cooldown,
);