Feature: Inbox greeting message (#927)

Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
This commit is contained in:
Sojan Jose
2020-06-09 23:54:35 +05:30
committed by GitHub
parent 8b022311c0
commit 432dad203b
48 changed files with 262 additions and 120 deletions

View File

@@ -64,7 +64,7 @@ class Twitter::DirectMessageParserService < Twitter::WebhooksBaseService
end
def set_conversation
@conversation = @contact_inbox.conversations.first
@conversation = @contact_inbox.conversations.where("additional_attributes ->> 'type' = 'direct_message'").first
return if @conversation
@conversation = ::Conversation.create!(conversation_params)