User Story:
If the user has subscribed two communities
(1)React Source Code Analysis
(2)Mysql Source Code Analysis
When some other user has published messages in the "Mysql Source Code Analysis", I am also in the room. When i logs in the application, i should be able to see the "new messages notification"
Design:
The backend has to give the frontend user a notification that there are new messages for this community. The backend could push a new message notification to the frontend.
Technical Design:
In Unread Message ticket, https://github.com/qiusuo-fuyuan/qiusuo-backend/issues/41, we have implemented lastReadMessage. In order to show the user there are new messages, we just have to compare the lastReadMessage of the user with the newest message in the room.
newestMessage.timestamp > lastReadMessage.timestamp, then we could notifiy the user of new messages via websocket.
User Story: If the user has subscribed two communities (1)React Source Code Analysis (2)Mysql Source Code Analysis
When some other user has published messages in the "Mysql Source Code Analysis", I am also in the room. When i logs in the application, i should be able to see the "new messages notification"
Design: The backend has to give the frontend user a notification that there are new messages for this community. The backend could push a new message notification to the frontend.
Technical Design: In Unread Message ticket, https://github.com/qiusuo-fuyuan/qiusuo-backend/issues/41, we have implemented lastReadMessage. In order to show the user there are new messages, we just have to compare the lastReadMessage of the user with the newest message in the room. newestMessage.timestamp > lastReadMessage.timestamp, then we could notifiy the user of new messages via websocket.