messagelist: minor cleanup

Simply doing nothing when MESSAGES failed to load isn't really helpful
anyway.
master
Richard de Boer 2023-01-07 15:27:49 +01:00
parent dc4c548271
commit a5a0b180ba
No known key found for this signature in database
1 changed files with 42 additions and 43 deletions

View File

@ -1161,7 +1161,7 @@
idx = MESSAGES.findIndex(m => m.src && m.src.toLowerCase().startsWith("alarm"));
if (idx>=0) alarm = MESSAGES.splice(idx, 1)[0];
};
if (MESSAGES!==undefined) { // only if loading MESSAGES worked
// Internal setUI suppresses Bangle.uiRemove between internal screens, so we
// need to call setUI to run uiRemove from previous app when fast-loaded.
Bangle.setUI();
@ -1207,4 +1207,3 @@
["touch", "drag", "swipe"].forEach(l => Bangle.on(l, clearUnreadStuff));
(B2 ? [BTN1] : [BTN1, BTN2, BTN3]).forEach(b => watches.push(setWatch(clearUnreadStuff, b, false)));
}
}