Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/components/ChannelList/hooks/useChannelListShape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,6 @@ export const useChannelListShapeDefaults = () => {
const newTargetChannelIndex =
typeof lastPinnedChannelIndex === 'number' ? lastPinnedChannelIndex + 1 : 0;

// skip re-render if the position of the channel does not change
if (currentChannels[newTargetChannelIndex] === targetChannel) {
return currentChannels;
}

newChannels.splice(newTargetChannelIndex, 0, targetChannel);

return newChannels;
Expand Down