discourse/plugins/chat/app/controllers
Roman Rizzi 082cd13909
FIX: Delete associated notifications when trashing chat messages. (#20144)
Deleting a message with a mention doesn't clear the associated notification, confusing the mentioned user.

There are different chat notification types, but we only care about `chat_mentioned` since `chat_quoted` is associated with a post, and `chat_message` is only for push notifications.

Unfortunately, this change doesn't fix the chat bubble getting out of sync when a message gets deleted since we track unread/mentions count with an integer, making it a bit hard to manipulate. We can follow up later if we consider it necessary.
2023-02-03 12:52:13 -03:00
..
admin DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
api FEATURE: Allow editing channel slug (#19948) 2023-01-30 13:18:34 +10:00
api_controller.rb DEV: Use guardian user for can_chat? (#19418) 2022-12-13 09:14:17 +10:00
chat_base_controller.rb DEV: Use guardian user for can_chat? (#19418) 2022-12-13 09:14:17 +10:00
chat_controller.rb FIX: Delete associated notifications when trashing chat messages. (#20144) 2023-02-03 12:52:13 -03:00
direct_messages_controller.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
emojis_controller.rb DEV: Move `discourse-chat` to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
incoming_chat_webhooks_controller.rb DEV: Remove old TODO for chat webhooks (#19839) 2023-01-12 11:45:53 +10:00