Merge pull request #831 from GetStream/hotfix/channelsOrder
fix(core): channels order
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
## Upcoming
|
||||
|
||||
🐞 Fixed
|
||||
|
||||
- Do not move a channel to top if the new message is from a thread.
|
||||
|
||||
## 3.3.1
|
||||
|
||||
- Updated `stream_chat` dependency to [`3.3.1`](https://pub.dev/packages/stream_chat/changelog).
|
||||
|
||||
@@ -174,6 +174,9 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
||||
EventType.messageNew,
|
||||
)
|
||||
.listen((e) {
|
||||
if (e.message?.parentId != null && e.message?.showInChannel != true) {
|
||||
return;
|
||||
}
|
||||
final newChannels = List<Channel>.from(channels ?? []);
|
||||
final index = newChannels.indexWhere((c) => c.cid == e.cid);
|
||||
if (index != -1) {
|
||||
|
||||
Reference in New Issue
Block a user