Kannaj / 42EXP

Find teams to work together with on projects
https://42exp.com/
Other
21 stars 7 forks source link

Figure out how to merge two consecutive messages from the same user #35

Open Kannaj opened 7 years ago

Kannaj commented 7 years ago

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