forked from FOSS/BangleApps
messagegui: stop buzzing for a message when it's removed
e.g. a call is answeredmaster
parent
8acffd521d
commit
f8a0c73356
|
@ -44,7 +44,7 @@ exports.gbHandler = (event) => {
|
||||||
"musicinfo" : function() {
|
"musicinfo" : function() {
|
||||||
require("messages").pushMessage(Object.assign(event, {t:"modify",id:"music",title:"Music"}));
|
require("messages").pushMessage(Object.assign(event, {t:"modify",id:"music",title:"Music"}));
|
||||||
},
|
},
|
||||||
// {"t":"call","cmd":"incoming/end","name":"Bob","number":"12421312"})
|
// {"t":"call","cmd":"incoming/end/start/outgoing","name":"Bob","number":"12421312"})
|
||||||
"call" : function() {
|
"call" : function() {
|
||||||
Object.assign(event, {
|
Object.assign(event, {
|
||||||
t:event.cmd=="incoming"?"add":"remove",
|
t:event.cmd=="incoming"?"add":"remove",
|
||||||
|
|
|
@ -109,4 +109,5 @@
|
||||||
0.80: Add ability to reply to messages if a reply library is installed and the message can be replied to
|
0.80: Add ability to reply to messages if a reply library is installed and the message can be replied to
|
||||||
0.81: Fix issue stopping Music message for being marked as read
|
0.81: Fix issue stopping Music message for being marked as read
|
||||||
Make sure play button image is transparent
|
Make sure play button image is transparent
|
||||||
Add top-right menu to music playback to allow message to be deleted
|
Add top-right menu to music playback to allow message to be deleted
|
||||||
|
0.82: Stop buzzing when a message is removed (e.g. call answered)
|
||||||
|
|
|
@ -25,6 +25,8 @@ exports.listener = function(type, msg) {
|
||||||
require("messages").apply(msg, Bangle.MESSAGES);
|
require("messages").apply(msg, Bangle.MESSAGES);
|
||||||
if (!Bangle.MESSAGES.length) delete Bangle.MESSAGES;
|
if (!Bangle.MESSAGES.length) delete Bangle.MESSAGES;
|
||||||
}
|
}
|
||||||
|
if(type!=="music")
|
||||||
|
require("messages").stopBuzz();
|
||||||
return require("messages").save(msg); // always write removal to flash
|
return require("messages").save(msg); // always write removal to flash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "messagegui",
|
"id": "messagegui",
|
||||||
"name": "Message UI",
|
"name": "Message UI",
|
||||||
"shortName": "Messages",
|
"shortName": "Messages",
|
||||||
"version": "0.81",
|
"version": "0.82",
|
||||||
"description": "Default app to display notifications from iOS and Gadgetbridge/Android",
|
"description": "Default app to display notifications from iOS and Gadgetbridge/Android",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "app",
|
"type": "app",
|
||||||
|
|
Loading…
Reference in New Issue