Merge branch 'develop' into fix/mutes

This commit is contained in:
Sahil Kumar
2022-04-01 13:59:16 +05:30
committed by GitHub
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -5,6 +5,8 @@
- Fixed reactions not working for threads in offline mode. - Fixed reactions not working for threads in offline mode.
- [[#1046]](https://github.com/GetStream/stream-chat-flutter/issues/1046) After `/mute` command on reload cannot access - [[#1046]](https://github.com/GetStream/stream-chat-flutter/issues/1046) After `/mute` command on reload cannot access
any channel. any channel.
- [[#1047]](https://github.com/GetStream/stream-chat-flutter/issues/1047) `own_capabilities` extraData missing after
channel update.
✅ Added ✅ Added
@@ -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,
); );