From dbc3b1ab509aab5f1db72c5cece2ee2a6eb521e8 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 30 Mar 2021 15:11:43 +0200 Subject: [PATCH] Allow the sendnewtextmenu to be used with a number as arg This allow the "Reply" appmenu shortcut to open a new compose message directly. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/modem/sxmo_modemtext.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemtext.sh b/scripts/modem/sxmo_modemtext.sh index 36e3c15..97d32f7 100755 --- a/scripts/modem/sxmo_modemtext.sh +++ b/scripts/modem/sxmo_modemtext.sh @@ -62,7 +62,11 @@ choosenumbermenu() { } sendnewtextmenu() { - NUMBER="$(choosenumbermenu)" + if [ -n "$1" ]; then + NUMBER="$1" + else + NUMBER="$(choosenumbermenu)" + fi # Compose first version of msg TEXT="$(editmsg "$NUMBER" 'Enter text message here')" sendtextmenu "$NUMBER" "$TEXT"