Skip to content

Conversation

@goto-bus-stop
Copy link
Member

These patches change two things that could cause the entire chat message list to rerender every time a new message was received.

The chat delete button handlers for moderators are now not recreated each time the list rerenders, so no longer cause all chat messages to rerender too.

I removed the striped chat message display (maybe will add it back with a CSS-only solution later) because it caused all chat messages to switch their alternate classname when 1) a message is deleted or 2) a new message comes in whilst there are already 512 messages in scrollback. Now it looks like:

Not-striped screenshot

Which honestly is not that bad 🤔 but I'll see if the stripes can work well using just CSS.

@goto-bus-stop goto-bus-stop force-pushed the bugfix/chat-performance branch from af19dcc to 6dbf342 Compare February 5, 2017 13:41
@goto-bus-stop goto-bus-stop merged commit cfd6900 into u-wave:master Feb 5, 2017
@goto-bus-stop goto-bus-stop deleted the bugfix/chat-performance branch February 8, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant