In user notification use the username part of the email address if customer has no name - closes #749

This commit is contained in:
FreeScout
2020-10-27 23:14:23 -07:00
parent b4d1e3eaff
commit 2e4dca4d89

View File

@@ -101,7 +101,7 @@ class SendNotificationToUsers implements ShouldQueue
// If this is notification on message from customer, set customer as sender name
$from_name = '';
if ($last_thread->type == Thread::TYPE_CUSTOMER) {
$from_name = $last_thread->customer->getFullName();
$from_name = $last_thread->customer->getFullName(true, true);
if ($from_name) {
$from_name = $from_name.' '.__('via').' '.$mailbox->name;
}