As of now , each message in the chat system is rendered in its own component /components/messages.jsx - a good UX would be to merge to message components if they're from the same user and within a specific time period.
i believe this could be easily done with hijacking the new_chat_message chat message action in https://github.com/Kannaj/42EXP/blob/master/shared/actions/projects/project_messages.js and have the reducer perform the below function
check the last message in the project
if the last message is off the same user and within a particular time period -> merge the two messages
As of now , each message in the chat system is rendered in its own component
/components/messages.jsx
- a good UX would be to merge to message components if they're from the same user and within a specific time period.i believe this could be easily done with hijacking the
new_chat_message
chat message action inhttps://github.com/Kannaj/42EXP/blob/master/shared/actions/projects/project_messages.js
and have the reducer perform the below function