fix: Handle email with no subject line and no body (#2164)
* fix: Add a default email subject line if no subject is present * Add a default on the frontend Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ class MailPresenter < SimpleDelegator
|
||||
end
|
||||
|
||||
def subject
|
||||
encode_to_unicode(@mail.subject)
|
||||
encode_to_unicode(@mail.subject || '')
|
||||
end
|
||||
|
||||
def text_content
|
||||
|
||||
Reference in New Issue
Block a user