chore: fetch mails with multiple attachments (#7030)

This commit is contained in:
Tejaswini Chile
2023-05-14 10:02:36 +05:30
committed by GitHub
parent 385eab6b96
commit 354010a6e1
4 changed files with 352 additions and 21 deletions

View File

@@ -23,7 +23,7 @@ module MailboxHelper
def add_attachments_to_message
return if @message.blank?
processed_mail.attachments.each do |mail_attachment|
processed_mail.attachments.last(Message::NUMBER_OF_PERMITTED_ATTACHMENTS).each do |mail_attachment|
attachment = @message.attachments.new(
account_id: @conversation.account_id,
file_type: 'file'