discourse/plugins/chat/app/services
Martin Brennan c908eeacc9
FIX: Update client lastReadMessageId on trashed message (#21697)
Followup ae3231e140, when a
message is trashed we already update the lastReadMessageId of
all users in the channel to the latest non-deleted message on
the server side. However we didn't propagate this to the client,
so in some cases when we did the following:

1. Delete the last message in the channel
2. Switch to another channel
3. Switch back to the original

We would get a 404 error from the target message ID being looked
up still being the old lastReadMessageId (now deleted) for the
user's channel membership.

All we need to do is send the last not-deleted message ID for
the channel (or thread) to all the member users.
2023-05-23 18:32:19 +02:00
..
chat FIX: Update client lastReadMessageId on trashed message (#21697) 2023-05-23 18:32:19 +02:00
service DEV: Rearchitect chat tracking state (#21550) 2023-05-16 14:51:13 +02:00
service.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00