Skip to content

Commit

Permalink
fix: tests issues
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Dec 31, 2024
1 parent fa943f4 commit d732e33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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<StreamChatGenerics>({
channels,
Expand Down

0 comments on commit d732e33

Please sign in to comment.