From 0e6617e4fb92f1c5ffdf254324ba18c0b714ecae Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:29:10 -0400 Subject: [PATCH] fix: adding email as name when no name provided --- src/Appwrite/Platform/Workers/Messaging.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index 510fec0431..f7a722bb7c 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -586,7 +586,7 @@ class Messaging extends Action Query::limit(\count($ccTargets)), ]); foreach ($ccTargets as $ccTarget) { - $cc[] = ['email' => $ccTarget['identifier']]; + $cc[] = ['email' => $ccTarget['identifier'], 'name' => $ccTarget['name'] ?? $ccTarget['identifier']]; } } @@ -596,7 +596,7 @@ class Messaging extends Action Query::limit(\count($bccTargets)), ]); foreach ($bccTargets as $bccTarget) { - $bcc[] = ['email' => $bccTarget['identifier']]; + $bcc[] = ['email' => $bccTarget['identifier'], 'name' => $bccTarget['name'] ?? $bccTarget['identifier']]; } }