0.59: Ensure we do write messages if messages app can't be fast loaded (see #2373)
parent
a808b1a87d
commit
aa1e485db8
|
|
@ -81,3 +81,4 @@
|
||||||
0.57: Fix "unread Timeout" = off (previously defaulted to 60s)
|
0.57: Fix "unread Timeout" = off (previously defaulted to 60s)
|
||||||
0.58: Fast load messages without writing to flash
|
0.58: Fast load messages without writing to flash
|
||||||
Don't write messages to flash until the app closes
|
Don't write messages to flash until the app closes
|
||||||
|
0.59: Ensure we do write messages if messages app can't be fast loaded (see #2373)
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,11 @@ exports.listener = function(type, msg) {
|
||||||
if (Bangle.CLOCK && msg.state && msg.title && appSettings.openMusic) loadMessages = true;
|
if (Bangle.CLOCK && msg.state && msg.title && appSettings.openMusic) loadMessages = true;
|
||||||
else return;
|
else return;
|
||||||
}
|
}
|
||||||
if (Bangle.load === load) {
|
if (Bangle.load === load || !Bangle.uiRemove) {
|
||||||
// no fast loading: store message to flash
|
// no fast loading: store message to flash
|
||||||
|
/* FIXME: Maybe we need a better way of deciding if an app will
|
||||||
|
be fast loaded than just hard-coding a Bangle.uiRemove check.
|
||||||
|
Bangle.load could return a bool (as the load doesn't happen immediately). */
|
||||||
require("messages").save(msg);
|
require("messages").save(msg);
|
||||||
} else {
|
} else {
|
||||||
if (!Bangle.MESSAGES) Bangle.MESSAGES = [];
|
if (!Bangle.MESSAGES) Bangle.MESSAGES = [];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
"id": "messagegui",
|
"id": "messagegui",
|
||||||
"name": "Message UI",
|
"name": "Message UI",
|
||||||
"version": "0.58",
|
"sortName": "Messages",
|
||||||
|
"version": "0.59",
|
||||||
"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