Update conversation_reply_mailer_helper.rb

This commit is contained in:
Sagar Aryal 2022-03-11 15:52:46 +01:00
parent ed2772dd59
commit b3bd1de518

View file

@ -40,6 +40,10 @@ module ConversationReplyMailerHelper
end end
def email_smtp_enabled def email_smtp_enabled
@inbox.inbox_type == 'Email' && @channel.smtp_enabled
end
def email_imap_enabled
@inbox.inbox_type == 'Email' && @channel.imap_enabled @inbox.inbox_type == 'Email' && @channel.imap_enabled
end end
@ -48,6 +52,6 @@ module ConversationReplyMailerHelper
end end
def email_reply_to def email_reply_to
email_smtp_enabled ? @channel.smtp_email : reply_email email_imap_enabled ? @channel.imap_email : reply_email
end end
end end