From 71391d982b1736603b6886557774aacdf2b3d906 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Fri, 18 Mar 2022 19:00:36 +0530 Subject: [PATCH] chore: filter .xml files for Bandwidth SMS (#4206) MMS sent from an ATT or Verizon phone number seems to be appending a SMIL file in .xml format for MMS. --- app/services/sms/incoming_message_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/sms/incoming_message_service.rb b/app/services/sms/incoming_message_service.rb index 537f3baf8..eb0b5512b 100644 --- a/app/services/sms/incoming_message_service.rb +++ b/app/services/sms/incoming_message_service.rb @@ -75,7 +75,7 @@ class Sms::IncomingMessageService params[:media].each do |media_url| # we don't need to process this files since chatwoot doesn't support it - next if media_url.end_with? '.smil' + next if media_url.end_with?('.smil', '.xml') attachment_file = Down.download( media_url,