File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 119
119
0.87: Make choosing of font size more repeatable
120
120
0.88: Adjust padding calculation so messages are spaced out properly even when using international fonts
121
121
0.89: Fix bugs related to empty titles and bodies
122
+ 0.90: Interrupt unread timeout if the user has unlocked the screen, resume on
123
+ screen locked (fix #3941)
Original file line number Diff line number Diff line change @@ -646,8 +646,18 @@ setTimeout(() => {
646
646
} , 10 ) ; // if checkMessages wants to 'load', do that
647
647
648
648
/* If the Bangle is unlocked by the user, treat that
649
- as a queue to stop repeated buzzing */
649
+ as a queue to stop repeated buzzing.
650
+ Also suspend the reload timeout while the watch is unlocked. */
651
+ let isTimeoutSuspended ;
650
652
Bangle . on ( 'lock' , locked => {
651
- if ( ! locked )
653
+ if ( ! locked ) {
652
654
require ( "messages" ) . stopBuzz ( ) ;
655
+ isTimeoutSuspended = ! ! unreadTimeout ;
656
+ cancelReloadTimeout ( ) ;
657
+ }
658
+ if ( locked )
659
+ if ( isTimeoutSuspended ) {
660
+ resetReloadTimeout ( ) ;
661
+ isTimeoutSuspended = false ;
662
+ }
653
663
} ) ;
Original file line number Diff line number Diff line change 2
2
"id" : " messagegui" ,
3
3
"name" : " Message UI" ,
4
4
"shortName" : " Messages" ,
5
- "version" : " 0.89 " ,
5
+ "version" : " 0.90 " ,
6
6
"description" : " Default app to display notifications from iOS and Gadgetbridge/Android" ,
7
7
"icon" : " app.png" ,
8
8
"type" : " app" ,
You can’t perform that action at this time.
0 commit comments