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:
Pranav Raj S
2021-04-27 23:21:04 +05:30
committed by GitHub
parent c10efd2c7b
commit 8ea35802b4
5 changed files with 645 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ class MailPresenter < SimpleDelegator
end
def subject
encode_to_unicode(@mail.subject)
encode_to_unicode(@mail.subject || '')
end
def text_content