fix(llc): merge channel in channel.update event
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -1598,7 +1598,7 @@ class ChannelClientState {
|
|||||||
_subscriptions.add(_channel.on(EventType.channelUpdated).listen((Event e) {
|
_subscriptions.add(_channel.on(EventType.channelUpdated).listen((Event e) {
|
||||||
final channel = e.channel!;
|
final channel = e.channel!;
|
||||||
updateChannelState(channelState.copyWith(
|
updateChannelState(channelState.copyWith(
|
||||||
channel: channel,
|
channel: channelState.channel?.merge(channel),
|
||||||
members: channel.members,
|
members: channel.members,
|
||||||
));
|
));
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class ChannelModel {
|
|||||||
updatedAt: other.updatedAt,
|
updatedAt: other.updatedAt,
|
||||||
deletedAt: other.deletedAt,
|
deletedAt: other.deletedAt,
|
||||||
memberCount: other.memberCount,
|
memberCount: other.memberCount,
|
||||||
extraData: other.extraData,
|
extraData: {...extraData, ...other.extraData},
|
||||||
team: other.team,
|
team: other.team,
|
||||||
cooldown: other.cooldown,
|
cooldown: other.cooldown,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user