Skip to content

Commit 3e95baf

Browse files
author
thyttan
committed
messagegui: fix marking messages read
1 parent 5027312 commit 3e95baf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/messagegui/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,15 +369,18 @@ function showMessagesScroller(msg) {
369369
},0);
370370
}
371371
//print(touch)
372-
if (touch && touch.type.swipeLR) {
372+
if (touch && touch.type.swipeLR!=0) {
373373
//print("select swipe")
374+
updateReadMessages();
374375
if (touch.type.swipeLR>0 && posHandler) {posHandler(MSG_SELECTED);}
375376
if (touch.type.swipeLR<0 && negHandler) {negHandler(MSG_SELECTED);}
376377
}
377378
},
378379
back: function () {
379380
if (!persist) { return load(); }
380381
Bangle.removeListener("touch", touchHandler);
382+
updateReadMessages();
383+
WU&&WU.show();
381384
returnToMain();
382385
}
383386
});

0 commit comments

Comments
 (0)