Skip to content

Conversation

@vishwamartur
Copy link

Related to #34

Add a feature to notify user 1 of new messages when they are not inside the chat.

  • Create a new React component AllConversations to display all conversations and bold the ones with new messages.
  • Add styles for the AllConversations component in AllConversations.css.
  • Import the AllConversations component and add a route for it in App.js.
  • Add a new socket event in server/index.js to notify the allconversations screen of new messages.
  • Emit a new socket event when a new message is received in Chat.js.

Related to adrianhajdin#34

Add a feature to notify user 1 of new messages when they are not inside the chat.

* Create a new React component `AllConversations` to display all conversations and bold the ones with new messages.
* Add styles for the `AllConversations` component in `AllConversations.css`.
* Import the `AllConversations` component and add a route for it in `App.js`.
* Add a new socket event in `server/index.js` to notify the allconversations screen of new messages.
* Emit a new socket event when a new message is received in `Chat.js`.

Signed-off-by: Vishwanath Martur <[email protected]>
@vishwamartur vishwamartur force-pushed the add-new-message-notification branch from 14f13a4 to 6db7e90 Compare November 12, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant