diff --git a/package/src/components/ChannelList/hooks/listeners/useNewMessage.ts b/package/src/components/ChannelList/hooks/listeners/useNewMessage.ts index b239675b3..28c03377a 100644 --- a/package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +++ b/package/src/components/ChannelList/hooks/listeners/useNewMessage.ts @@ -58,7 +58,7 @@ export const useNewMessage = < (isTargetChannelPinned && considerPinnedChannels) || lockChannelOrder ) { - return channels; + return [...channels]; } // If channel doesn't exist in existing list, check in activeChannels as well. @@ -77,7 +77,7 @@ export const useNewMessage = < // When archived filter true, and channel is not archived (isArchivedFilterTrue && !isChannelArchived(channelToMove)) ) { - return channels; + return [...channels]; } return moveChannelUp({ channels,