chore: Enable email channel (#1851)
This commit is contained in:
@@ -19,7 +19,7 @@ class SupportMailbox < ApplicationMailbox
|
||||
|
||||
def find_channel
|
||||
mail.to.each do |email|
|
||||
@channel = Channel::Email.find_by(email: email)
|
||||
@channel = Channel::Email.find_by('email = ? OR forward_to_email = ?', email, email)
|
||||
break if @channel.present?
|
||||
end
|
||||
raise 'Email channel/inbox not found' if @channel.nil?
|
||||
|
||||
Reference in New Issue
Block a user