File tree Expand file tree Collapse file tree 7 files changed +28
-8
lines changed
Expand file tree Collapse file tree 7 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 1191190.87: Make choosing of font size more repeatable
1201200.88: Adjust padding calculation so messages are spaced out properly even when using international fonts
1211210.89: Fix bugs related to empty titles and bodies
122+ 0.90: New settings for when to auto show new message (never, on clocks -
123+ default, if locked, always)
Original file line number Diff line number Diff line change @@ -35,7 +35,11 @@ exports.listener = function(type, msg) {
3535 }
3636
3737 const appSettings = require ( "Storage" ) . readJSON ( "messages.settings.json" , 1 ) || { } ;
38- let loadMessages = ( Bangle . CLOCK || msg . important ) ; // should we load the messages app?
38+ const autoOpen = appSettings . autoOpen ;
39+ let loadMessages = (
40+ ( autoOpen === 1 && Bangle . CLOCK ) || ( autoOpen === 2 && Bangle . isLocked ( ) ) || autoOpen === 3 ||
41+ msg . important
42+ ) ; // should we load the messages app?
3943 if ( type === "music" ) {
4044 if ( Bangle . CLOCK && msg . state && msg . title && appSettings . openMusic ) loadMessages = true ;
4145 else return ;
@@ -60,7 +64,7 @@ exports.listener = function(type, msg) {
6064 const quiet = ( require ( "Storage" ) . readJSON ( "setting.json" , 1 ) || { } ) . quiet ;
6165 const unlockWatch = appSettings . unlockWatch ;
6266 // don't auto-open messages in quiet mode if quietNoAutOpn is true
63- if ( ( quiet && appSettings . quietNoAutOpn ) || appSettings . noAutOpn )
67+ if ( ( quiet && appSettings . quietNoAutOpn ) )
6468 loadMessages = false ;
6569 // after a delay load the app, to ensure we have all the messages
6670 if ( exports . messageTimeout ) clearTimeout ( exports . messageTimeout ) ;
Original file line number Diff line number Diff line change 22 "id" : " messagegui" ,
33 "name" : " Message UI" ,
44 "shortName" : " Messages" ,
5- "version" : " 0.89 " ,
5+ "version" : " 0.90 " ,
66 "description" : " Default app to display notifications from iOS and Gadgetbridge/Android" ,
77 "icon" : " app.png" ,
88 "type" : " app" ,
Original file line number Diff line number Diff line change 12120.66: Fix 'Auto-Open Unread Msg' polarity - previously checking the box would ignore unread messages
13130.67: Ensure default vibration pattern is longer
1414 Add Option to show widgets (Message GUI 0.86 removes them by default)
15+ 0.68: New settings for when to auto show new message (never, on clocks -
16+ default, if locked, always)
Original file line number Diff line number Diff line change @@ -56,11 +56,16 @@ There are several options to choose from:
5656* ** Vibrate timer** : How many seconds should we vibrate for?
5757* ** Unread timer** : How long should the Messages app show an unread message for before going back to the clock?
5858* ** Min Font** : Minimum font size for messages
59+ * ** Auto-Open Unread Msg** : Should the first unread message be displayed immediately when opening the app?
5960* ** Auto-Open Music** : Should the messages music screen auto open when music is played?
6061* ** Unlock Watch** : When a message arrives should the watch be unlocked?
6162* ** Flash Icon** : Should the messages icon in the widget flash when a message arrives?
6263* ** Quiet mode disables auto-open** : When in quiet mode, should we not open the messages app for new messages?
63- * ** Disable auto-open** : Should we not open the messages app for new messages?
64+ * ** Auto-open new msg** : Should we open the messages app for new messages?
65+ * ** Never** : Never open for new messages
66+ * ** On clock** : Open if a clock face is showing (default)
67+ * ** If locked** : Open if the screen is locked
68+ * ** Always** : Always open new messages
6469* ** Widget messages** : How many message icons should the widget show?
6570* ** Show Widgets** : Should widgets be shown when a message is being displayed (default of disabled leaves more room for the message text)
6671* ** Icon color mode** : Should icons in widgets be coloured?
Original file line number Diff line number Diff line change 11{
22 "id" : " messages" ,
33 "name" : " Messages" ,
4- "version" : " 0.67 " ,
4+ "version" : " 0.68 " ,
55 "description" : " Library to handle, load and store message events received from Android/iOS" ,
66 "icon" : " app.png" ,
77 "type" : " module" ,
Original file line number Diff line number Diff line change 1212 if ( settings . maxMessages === undefined ) settings . maxMessages = 3 ;
1313 if ( settings . iconColorMode === undefined ) settings . iconColorMode = iconColorModes [ 0 ] ;
1414 if ( settings . ignoreUnread === undefined ) settings . ignoreUnread = 0 ;
15+ if ( settings . autoOpen === undefined ) settings . autoOpen = 1 ;
1516 settings . unlockWatch = ! ! settings . unlockWatch ;
1617 settings . openMusic = ! ! settings . openMusic ;
1718 settings . maxUnreadTimeout = 240 ;
7980 value : ! ! settings . quietNoAutOpn ,
8081 onchange : v => updateSetting ( "quietNoAutOpn" , v )
8182 } ,
82- /*LANG*/ 'Disable auto-open' : {
83- value : ! ! settings . noAutOpn ,
84- onchange : v => updateSetting ( "noAutOpn" , v )
83+ /*LANG*/ 'Auto-open new msg' : {
84+ value : settings . autoOpen ,
85+ min :0 , max :3 , step :1 ,
86+ format : v =>
87+ v === 0 ? "Never" :
88+ v === 1 ? "On clock" :
89+ v === 2 ? "If locked" :
90+ "Always" ,
91+ onchange : v => updateSetting ( "autoOpen" , v )
8592 } ,
8693 /*LANG*/ 'Widget messages' : {
8794 value :0 | settings . maxMessages ,
You can’t perform that action at this time.
0 commit comments