FIX: webhook should touch channel’s last_message_sent_at (#19342)

This commit is contained in:
Joffrey JAFFEUX
2022-12-06 19:33:39 +01:00
committed by GitHub
parent 9c8043a4d2
commit 179d15d90e
3 changed files with 13 additions and 1 deletions

View File

@ -53,6 +53,7 @@ class Chat::ChatMessageCreator
chat_message: @chat_message,
timestamp: @chat_message.created_at,
)
@chat_channel.touch(:last_message_sent_at)
DiscourseEvent.trigger(:chat_message_created, @chat_message, @chat_channel, @user)
rescue => error
@error = error