mirror of
https://github.com/discourse/discourse.git
synced 2025-01-22 09:09:10 +08:00
894586afa9
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. |
||
---|---|---|
.. | ||
action | ||
auto_remove | ||
lookup_thread.rb | ||
mark_all_user_channels_read.rb | ||
message_destroyer.rb | ||
publisher.rb | ||
trash_channel.rb | ||
trash_message.rb | ||
update_channel_status.rb | ||
update_channel.rb | ||
update_user_last_read.rb |