-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HELP #34
Comments
vishwamartur
added a commit
to vishwamartur/project_chat_application
that referenced
this issue
Nov 12, 2024
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`.
vishwamartur
added a commit
to vishwamartur/project_chat_application
that referenced
this issue
Nov 12, 2024
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i really need help with sockets. so what i have is allconversations screen which has all the conversations on and the chat screen which is the actually chat itself. i have successfully implemented sockets that when both users are inside the chat messages get sent live. my problem is if user 1 is on allconversations screen and user 2 is inside chat and user2 sends user 1 a message. the message gets rendered live for user 2 but user 1 does not know about this new message because he/she are not inside chat. how to implement a feature for user 1 that if this scenario happens the conversation that receives a new messages becomes bold on the allconversations screen?
thank you in advance, i have been trying to solve this for a month now and couldnt get anywhere :(
The text was updated successfully, but these errors were encountered: