Skip to content

Commit 70d39f9

Browse files
authored
fix: remove optimization preventing ChannelList re-render on member.updated event (#2801)
1 parent 502ca11 commit 70d39f9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/ChannelList/hooks/useChannelListShape.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,6 @@ export const useChannelListShapeDefaults = () => {
314314
const newTargetChannelIndex =
315315
typeof lastPinnedChannelIndex === 'number' ? lastPinnedChannelIndex + 1 : 0;
316316

317-
// skip re-render if the position of the channel does not change
318-
if (currentChannels[newTargetChannelIndex] === targetChannel) {
319-
return currentChannels;
320-
}
321-
322317
newChannels.splice(newTargetChannelIndex, 0, targetChannel);
323318

324319
return newChannels;

0 commit comments

Comments
 (0)