A
A
artemsiberiangit2021-11-14 14:41:16
Python
artemsiberiangit, 2021-11-14 14:41:16

How to correctly implement the system of unread messages in a group chat?

Tell me what is the best method for implementing a system of unread chat messages
. when sending a message, I want to take into account those people who did not read and read this message (Read means to be in the chat at the time the message was sent, if the person in the chat is automatically connected to the web socket of this chat), further process and display this information on site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-11-14
@Vindicar

Well, for example, for each user-chat pair, store a timestamp for disconnecting from the chat (or equivalent event). Then all messages that were added to the chat after this label will be considered unread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question