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>
This commit is contained in:
parent
856ba23cde
commit
dbc3b1ab50
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue