We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4206e4 commit 8b0294dCopy full SHA for 8b0294d
apps/messagegui/app.js
@@ -784,8 +784,14 @@ setTimeout(() => {
784
}, 10); // if checkMessages wants to 'load', do that
785
786
/* If the Bangle is unlocked by the user, treat that
787
-as a queue to stop repeated buzzing */
+as a queue to stop repeated buzzing.
788
+Also suspend the reload timeout while the watch is unlocked. */
789
Bangle.on('lock',locked => {
- if (!locked)
790
+ if (!locked) {
791
require("messages").stopBuzz();
792
+ cancelReloadTimeout();
793
+ }
794
+ if (locked) {
795
+ if ("messagegui.new.js"===global.__FILE__) {resetReloadTimeout();}
796
797
});
0 commit comments