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

@ -110,7 +110,6 @@ class Chat::ChatController < Chat::ChatBaseController
return render_json_error(chat_message_creator.error) if chat_message_creator.failed?
@chat_channel.touch(:last_message_sent_at)
@user_chat_channel_membership.update(last_read_message_id: chat_message_creator.chat_message.id)
if @chat_channel.direct_message_channel?