fix: mention notification mail for empty contact name (#5091)

This commit is contained in:
Tejaswini Chile
2022-07-22 15:37:24 +05:30
committed by GitHub
parent 8acba37baf
commit ffec427513
2 changed files with 15 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ class ConversationDrop < BaseDrop
end
def contact_name
@obj.try(:contact).name.capitalize || 'Customer'
@obj.try(:contact).name.try(:capitalize) || 'Customer'
end
def recent_messages