Chore: Cleanup attachment handling for Facebook & Whatsapp (#1051)
* Chore: Enable file upload for facebook messenger * Chore: Fix attachments * Chore: Fix Specs * Fix ReplyBox file attachment logic * Set default value for message Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
@@ -134,14 +134,7 @@ class Message < ApplicationRecord
|
||||
end
|
||||
|
||||
def send_reply
|
||||
channel_name = conversation.inbox.channel.class.to_s
|
||||
if channel_name == 'Channel::FacebookPage'
|
||||
::Facebook::SendOnFacebookService.new(message: self).perform
|
||||
elsif channel_name == 'Channel::TwitterProfile'
|
||||
::Twitter::SendOnTwitterService.new(message: self).perform
|
||||
elsif channel_name == 'Channel::TwilioSms'
|
||||
::Twilio::SendOnTwilioService.new(message: self).perform
|
||||
end
|
||||
::SendReplyJob.perform_later(id)
|
||||
end
|
||||
|
||||
def reopen_conversation
|
||||
|
||||
Reference in New Issue
Block a user