fix: create thread if conversation identifier changes

This commit is contained in:
Muhsin Keloth
2023-08-10 13:17:07 +05:30
parent 04287a0924
commit 8fe4ebde9b
2 changed files with 39 additions and 1 deletions
@@ -128,7 +128,8 @@ class Integrations::Slack::SendOnSlackService < Base::SendOnChannelService
end
def update_reference_id
return if conversation.identifier
# If the conversation identifier is present and conversation identifier is not equal to slack message ts, then do nothing
return if conversation.identifier && conversation.identifier == @slack_message['ts']
conversation.update!(identifier: @slack_message['ts'])
end