bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat
Arthur B. Grossi 1dbc773aee
feat(chat): improve messages rendering (#21323)
* feat(chat): improve messages rendering

This commit adds memoization and comparsion functions to the chat pages
and chat messages to prevent whole chat re-renders and unnecessary
message re-renders caused by React's default shallow comparsion mechanism.
The comparsion functions ensure that only the pertinent message attributes
trigger a component's re-render.

Messages sent by a user are not updated (re-rendered) when their role
change. In other words, the chat messages reflect the user's role at the
time the message was sent. Altering the message to reflect the user's
current role could confuse participants, as it would modify the context
of the past conversation. This behavior has been validated by the UI/UX
team and brings benefits such as performance improvements and consistent
behavior with how playback handles such messages.

* fix linter errors
2024-10-03 10:10:52 -03:00
..
chat-graphql feat(chat): improve messages rendering (#21323) 2024-10-03 10:10:52 -03:00
chat-logger Implements chat using react context as middleware 2021-01-19 14:06:32 -03:00