We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa943f4 commit d732e33Copy full SHA for d732e33
package/src/components/ChannelList/hooks/listeners/useNewMessage.ts
@@ -58,7 +58,7 @@ export const useNewMessage = <
58
(isTargetChannelPinned && considerPinnedChannels) ||
59
lockChannelOrder
60
) {
61
- return channels;
+ return [...channels];
62
}
63
64
// If channel doesn't exist in existing list, check in activeChannels as well.
@@ -77,7 +77,7 @@ export const useNewMessage = <
77
// When archived filter true, and channel is not archived
78
(isArchivedFilterTrue && !isChannelArchived(channelToMove))
79
80
81
82
return moveChannelUp<StreamChatGenerics>({
83
channels,
0 commit comments