Rework of the sxmo_modemtext with benefit
* Draft files are assigned to each number: Stored here ".local/share/modem/+33666666666/draft.txt" We automatically edit this single file, making crash or unexpected edition issue to leave intact saved draft. * Simplification of some logics Having a known draft file instead of using a TEXT var simplify lots of things * EDITOR is not run in a subshell Some editors as kakoune got issues with that. Futhermore, it will be usefull for some other development as making all menu ssh mode compatible * Remove modem check As we now got draft, why do we care if modem is up or down ? * Display the contact name instead of it number in the conversation Or use "Unknown Number (+337798676)" * Unify display message notif adding possibilities to bypass the main menu Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
016363dd57
commit
262418637f
3 changed files with 63 additions and 80 deletions
|
@ -307,7 +307,7 @@ programchoicesinit() {
|
|||
number="$(echo "$WMNAME" | sed -e 's|^\"||' -e 's|\"$||' | cut -f1 -d' ')"
|
||||
#sms
|
||||
CHOICES="
|
||||
$icon_msg Reply ^ 0 ^ sxmo_modemtext.sh $number
|
||||
$icon_msg Reply ^ 0 ^ sxmo_modemtext.sh sendtextmenu $number
|
||||
$icon_phn Call ^ 0 ^ sxmo_modemdial.sh $number
|
||||
"
|
||||
WINNAME=sms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue