forked from FOSS/BangleApps
fixes buzzing behavior in de messages app.
parent
df97ac3b7c
commit
9f96ae0955
|
@ -2,3 +2,4 @@
|
||||||
0.56: Fix handling of music messages
|
0.56: Fix handling of music messages
|
||||||
0.57: Optimize saving empty message list
|
0.57: Optimize saving empty message list
|
||||||
0.58: show/hide "messages" widget directly, instead of through library stub
|
0.58: show/hide "messages" widget directly, instead of through library stub
|
||||||
|
0.59: fixes message timeout by using setinterval, as it was intended. So the buzz is triggered every x seconds until the timeout occours.
|
||||||
|
|
|
@ -215,8 +215,9 @@ exports.buzz = function(msgSrc) {
|
||||||
|
|
||||||
let repeat = msgSettings.repeat;
|
let repeat = msgSettings.repeat;
|
||||||
if (repeat===undefined) repeat = 4; // repeat may be zero
|
if (repeat===undefined) repeat = 4; // repeat may be zero
|
||||||
if (repeat) {
|
if (repeat)
|
||||||
exports.buzzTimeout = setTimeout(() => require("buzz").pattern(pattern), repeat*1000);
|
{
|
||||||
|
exports.buzzTimeout = setInterval(() => require("buzz").pattern(pattern), repeat*1000);
|
||||||
let vibrateTimeout = msgSettings.vibrateTimeout;
|
let vibrateTimeout = msgSettings.vibrateTimeout;
|
||||||
if (vibrateTimeout===undefined) vibrateTimeout = 60;
|
if (vibrateTimeout===undefined) vibrateTimeout = 60;
|
||||||
if (vibrateTimeout && !exports.stopTimeout) exports.stopTimeout = setTimeout(exports.stopBuzz, vibrateTimeout*1000);
|
if (vibrateTimeout && !exports.stopTimeout) exports.stopTimeout = setTimeout(exports.stopBuzz, vibrateTimeout*1000);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "messages",
|
"id": "messages",
|
||||||
"name": "Messages",
|
"name": "Messages",
|
||||||
"version": "0.58",
|
"version": "0.59",
|
||||||
"description": "Library to handle, load and store message events received from Android/iOS",
|
"description": "Library to handle, load and store message events received from Android/iOS",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
Loading…
Reference in New Issue