From 7582b63eaa6aecd45107429960435c47e4a520f3 Mon Sep 17 00:00:00 2001 From: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:33:58 -0700 Subject: [PATCH] fix(messaging): use _APP_SMS_FROM for template ID Fallback to using _APP_SMS_FROM for backwards compatibility. --- src/Appwrite/Platform/Workers/Messaging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index b824341f07..85cc110d06 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -410,7 +410,7 @@ class Messaging extends Action 'msg91' => [ 'senderId' => $user, 'authKey' => $password, - 'templateId' => $smsDSN->getParam('templateId'), + 'templateId' => $smsDSN->getParam('templateId', $from), ], 'vonage' => [ 'apiKey' => $user,