fix: Update mail check for html_part (#7273)

This commit is contained in:
Tejaswini Chile
2023-06-09 16:08:40 +05:30
committed by GitHub
parent 48f2e58e59
commit f64f2138db
4 changed files with 6011 additions and 5 deletions

View File

@@ -38,11 +38,9 @@ module MailboxHelper
end
def embed_inline_image_source(mail_attachment)
current_mail = processed_mail.mail
if current_mail.html_part.present?
if processed_mail.serialized_data[:html_content].present?
upload_inline_image(mail_attachment)
elsif current_mail.text_part.present?
elsif processed_mail.serialized_data[:text_content].present?
embed_plain_text_email_with_inline_image(mail_attachment)
end
end