fix: handle string return values in MailPresenter#from method (#12966)
This commit is contained in:
@@ -125,7 +125,7 @@ class MailPresenter < SimpleDelegator
|
|||||||
|
|
||||||
def from
|
def from
|
||||||
# changing to downcase to avoid case mismatch while finding contact
|
# changing to downcase to avoid case mismatch while finding contact
|
||||||
(@mail.reply_to.presence || @mail.from).map(&:downcase)
|
Array.wrap(@mail.reply_to.presence || @mail.from).map(&:downcase)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sender_name
|
def sender_name
|
||||||
|
|||||||
Reference in New Issue
Block a user