Skip to content

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

Open
@Kannaj

Description

@Kannaj

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions