Do not display text only numbers as options when dialing or composing new texts

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Anjandev Momi 4 years ago committed by Maarten van Gompel
parent f149b7e250
commit 236ab9a343
  1. 2
      scripts/modem/sxmo_modemdial.sh
  2. 2
      scripts/modem/sxmo_modemtext.sh

@ -16,7 +16,7 @@ modem_n() {
} }
dialmenu() { dialmenu() {
CONTACTS="$(sxmo_contacts.sh)" CONTACTS="$(sxmo_contacts.sh | grep -E "^\+?[0-9]+:")"
NUMBER="$( NUMBER="$(
printf %b "Close Menu\nMore contacts\n$CONTACTS" | printf %b "Close Menu\nMore contacts\n$CONTACTS" |
grep . | grep . |

@ -38,7 +38,7 @@ choosenumbermenu() {
# Prompt for number # Prompt for number
NUMBER="$( NUMBER="$(
printf %b "\nCancel\nMore contacts\n$(sxmo_contacts.sh)" | printf %b "\nCancel\nMore contacts\n$(sxmo_contacts.sh | grep -E "^\+?[0-9]+:")" |
awk NF | awk NF |
menu sxmo_dmenu_with_kb.sh -p "Number" -fn "Terminus-20" -l 10 -c -i | menu sxmo_dmenu_with_kb.sh -p "Number" -fn "Terminus-20" -l 10 -c -i |
cut -d: -f1 | cut -d: -f1 |

Loading…
Cancel
Save