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.
This commit is contained in:
@@ -75,7 +75,7 @@ class Sms::IncomingMessageService
|
|||||||
|
|
||||||
params[:media].each do |media_url|
|
params[:media].each do |media_url|
|
||||||
# we don't need to process this files since chatwoot doesn't support it
|
# 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(
|
attachment_file = Down.download(
|
||||||
media_url,
|
media_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user