TastySatang/messenger-161

1) Bug fix: Sending messages

Closed this issue · 1 comments

There are some bugs in our starting code that we would like you to investigate and resolve. First, when you send a new message, it does not immediately appear on the screen. We would like new messages to be immediately added to the chat UI for both existing conversations and new conversations. (Note: This may require more than one change)
Additionally, messages are not displayed in the correct order on page load. Messages should be displayed in order with the oldest messages at the top and newest messages at the bottom.

The starting code has some Cypress tests for this ticket (bug-fix-ticket.spec.js). Please ensure that your code passes these tests before requesting review on your PR for this feature (the README has details on how to run the tests).

  • New message shows up immediately in existing conversations
  • New message shows up immediately in new conversations
  • Messages are loaded in the correct order on page load. (oldest on top)
  • Cypress test passed