Closed Ananto30 closed 2 years ago
I want to do that, can you please assign it to me? @Ananto30
Thanks 🙏
Created PR, Please review https://github.com/Ananto30/golpo-express/pull/25 @Ananto30
Thanks @alammoiz for your awesome contributions to this project 🙏 I really appreciate it.
As you are doing good work on the backend I can show you a glimpse of the frontend I am working on -
Context
We want to show in frontend if the user has any chats unread. So we need an endpoint where user will send that he already seen that chat.
Task
/api/chat/:receiver/:chatId/seen
in routes and controller. The api takes nobody
.seen
, implement a chatSeen function in conversation.service that store the chat id's seen true for the specific receiver. Get the sender user by token.