sms-forward: delay after removal...

... to give the SIM card some time to succeed. Removing several messages
one after another fails without this.
This commit is contained in:
Christian Hesse 2025-05-07 11:45:55 +02:00
parent f095b581e7
commit 9085780562

View file

@ -62,6 +62,7 @@
($SmsVal->"message")~("^:cmd " . $Settings->"secret" . " script ")) do={
$LogPrint debug $ScriptName ("Removing SMS, which started a script.");
/tool/sms/inbox/remove $Sms;
:delay 50ms;
} else={
:set Messages ($Messages . "\n\nOn " . $SmsVal->"timestamp" . \
" type " . $SmsVal->"type" . ":\n" . $SmsVal->"message");
@ -93,6 +94,7 @@
" by " . $Identity . " from " . $Phone . ":" . $Messages) });
:foreach Sms in=$Delete do={
/tool/sms/inbox/remove $Sms;
:delay 50ms;
}
}
}