Update conversation_reply_mailer_helper.rb
This commit is contained in:
parent
ed2772dd59
commit
b3bd1de518
1 changed files with 5 additions and 1 deletions
|
@ -40,6 +40,10 @@ module ConversationReplyMailerHelper
|
|||
end
|
||||
|
||||
def email_smtp_enabled
|
||||
@inbox.inbox_type == 'Email' && @channel.smtp_enabled
|
||||
end
|
||||
|
||||
def email_imap_enabled
|
||||
@inbox.inbox_type == 'Email' && @channel.imap_enabled
|
||||
end
|
||||
|
||||
|
@ -48,6 +52,6 @@ module ConversationReplyMailerHelper
|
|||
end
|
||||
|
||||
def email_reply_to
|
||||
email_smtp_enabled ? @channel.smtp_email : reply_email
|
||||
email_imap_enabled ? @channel.imap_email : reply_email
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue