sms-forward: pass origin to $SendNotification2

This commit is contained in:
Christian Hesse 2021-04-27 21:51:32 +02:00
parent e6223a3661
commit 0d249d6da4

View file

@ -51,7 +51,8 @@ $WaitFullyConnected;
:if ([ :len $Messages ] > 0) do={ :if ([ :len $Messages ] > 0) do={
:local Count [ :len $Delete ]; :local Count [ :len $Delete ];
$SendNotification2 ({ subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \ $SendNotification2 ({ origin=$0; \
subject=([ $SymbolForNotification "incoming-envelope" ] . "SMS Forwarding from " . $Phone); \
message=("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \ message=("Received " . [ $IfThenElse ($Count = 1) "this message" ("these " . $Count . " messages") ] . \
" by " . $Identity . " from " . $Phone . ":" . $Messages) }); " by " . $Identity . " from " . $Phone . ":" . $Messages) });
:foreach Sms in=$Delete do={ :foreach Sms in=$Delete do={