~mil/sxmo-utils

dbc3b1ab509aab5f1db72c5cece2ee2a6eb521e8 — Stacy Harper 8 months ago 856ba23
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>
1 files changed, 5 insertions(+), 1 deletions(-)

M scripts/modem/sxmo_modemtext.sh
M scripts/modem/sxmo_modemtext.sh => scripts/modem/sxmo_modemtext.sh +5 -1
@@ 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"