diff --git a/app/services/twitter/direct_message_parser_service.rb b/app/services/twitter/direct_message_parser_service.rb index f68d60815..bf83958ba 100644 --- a/app/services/twitter/direct_message_parser_service.rb +++ b/app/services/twitter/direct_message_parser_service.rb @@ -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) diff --git a/config/app.yml b/config/app.yml index 2fb8246aa..cbcfd2d5b 100644 --- a/config/app.yml +++ b/config/app.yml @@ -1,5 +1,5 @@ shared: &shared - version: '1.4.0' + version: '1.5.2' development: <<: *shared