fix: handle string return values in MailPresenter#from method (#12966)

This commit is contained in:
Vinay Keerthi
2025-11-27 10:31:56 +05:30
committed by GitHub
parent 3ded13c8d5
commit eb0410af53

View File

@@ -125,7 +125,7 @@ class MailPresenter < SimpleDelegator
def from
# 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
def sender_name