discourse/plugins/chat/app/services/chat
Martin Brennan 894586afa9
FIX: Trashing message should reset last read (#20912)
When a chat message is trashed and the message is used
for someone's UserChatChannelMembership#last_read_message_id,
the user would end up with some read state issues until
someone posted a new message in the channel, since we didn't
clear it like we did on bulk message delete.

This commit fixes the issue, and also takes the opportunity
to start a MessagesController in the API namespace, and move
the trash message functionality into the new service format.
2023-04-04 09:30:38 +10:00
..
action FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00
auto_remove
lookup_thread.rb
mark_all_user_channels_read.rb DEV: Introduce bulk channel tracking publisher (#20838) 2023-03-28 09:36:28 +10:00
message_destroyer.rb FIX: Trashing message should reset last read (#20912) 2023-04-04 09:30:38 +10:00
publisher.rb DEV: Fix excessive MessageBus#last_id calls in chat (#20855) 2023-03-28 14:45:45 +10:00
trash_channel.rb
trash_message.rb FIX: Trashing message should reset last read (#20912) 2023-04-04 09:30:38 +10:00
update_channel_status.rb
update_channel.rb
update_user_last_read.rb FEATURE: Mark all chat channels read with a shortcut (#20629) 2023-03-22 13:24:07 +10:00