From 59fe5977b403cb90327877595ba33b8ed358ab37 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sat, 15 May 2021 18:45:21 +0200 Subject: [PATCH] Add a shortcut to list message from contact menu Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_contactmenu.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_contactmenu.sh b/scripts/core/sxmo_contactmenu.sh index 1c68875..8b3d5af 100755 --- a/scripts/core/sxmo_contactmenu.sh +++ b/scripts/core/sxmo_contactmenu.sh @@ -103,14 +103,17 @@ editcontact() { showcontact() { number="$(echo "$1" | cut -d" " -f1)" name="$(echo "$1" | cut -d" " -f2)" - ENTRIES="$(printf %b "$icon_ret Cancel\n$icon_msg Send a Message\n$icon_phn Call\n$icon_edt Edit\n$icon_del Delete")" + ENTRIES="$(printf %b "$icon_ret Cancel\n$icon_lst List Messages\n$icon_msg Send a Message\n$icon_phn Call\n$icon_edt Edit\n$icon_del Delete")" PICKED="$( echo "$ENTRIES" | dmenu -c -l 5 -p "$icon_usr $name" )" - if echo "$PICKED" | grep -q "Send a Message"; then + if echo "$PICKED" | grep -q "List Messages"; then + sxmo_modemtext.sh tailtextlog "$number" + exit + elif echo "$PICKED" | grep -q "Send a Message"; then sxmo_modemtext.sh sendtextmenu "$number" exit elif echo "$PICKED" | grep -q "Call"; then