Skip to content

Commit

Permalink
add a note
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Oct 12, 2023
1 parent e7d3239 commit 851d4c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/js/chat/conversation-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function renderChannels(type: SupportedChannelType) {
if (channels.length > 0 || type === 'ANNOUNCE' && core.dataStore.chatState.canChatAnnounce) {
const title = trans(`chat.channels.list.title.${type}`);

// Optimization so that the channel list can be rendered as several smaller layers.
// This shouldn't be too large, otherwise, Safari can't handle the layer; it also can't be
// too small, otherwise there'll be too many layout recalculations.
const chunks = chunk(channels, 100);

return (
Expand Down

0 comments on commit 851d4c8

Please sign in to comment.