You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would you like to have this implemented? We currently have access to a stream of messages, ordered by server-side timestamp. I suppose we could add a simple setter/getter to the store per thread? That way, clients can mark where the cursor is set.
Actually i don't know how cursors work in sled. I had the idea of adding a tree similar to one for the messages that keeps the ids of the unread messages. Then we can use .count() for getting the actual number.
There store is updated when
the client asks for messages and the timestamp is inside -> or we make it more simple like get message in chat x resets the counter for x
we receive a sync message that was send from another device. -> indication for messages were read some where else
we receive a data message -> increment by 1
That means, we can implement the message read functionality of signal
I would keep the logic as much as possible inside presage, but we can provide a setter/getter, too.
It should be possible to get a sessions list with Name/username/groupname as title, a unread counter and last message, how would you do that?
The text was updated successfully, but these errors were encountered: