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 <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Stacy Harper 4 years ago committed by Maarten van Gompel
parent 856ba23cde
commit dbc3b1ab50
  1. 6
      scripts/modem/sxmo_modemtext.sh

@ -62,7 +62,11 @@ choosenumbermenu() {
} }
sendnewtextmenu() { sendnewtextmenu() {
NUMBER="$(choosenumbermenu)" if [ -n "$1" ]; then
NUMBER="$1"
else
NUMBER="$(choosenumbermenu)"
fi
# Compose first version of msg # Compose first version of msg
TEXT="$(editmsg "$NUMBER" 'Enter text message here')" TEXT="$(editmsg "$NUMBER" 'Enter text message here')"
sendtextmenu "$NUMBER" "$TEXT" sendtextmenu "$NUMBER" "$TEXT"

Loading…
Cancel
Save