mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
fix: messages that arrive while asleep or locked stay unread
A conversation left open under the lock screen or a dark display no longer counts as read: the counters and the lock screen's tally go up, and on waking (L2: on unlocking) the conversation reopens on its first unread under the "New" line, a typed draft kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -224,6 +224,7 @@ void UITask::unlockScreen() {
|
||||
_pin_entry[0] = '\0';
|
||||
if (_screen == SCR_HOME) refreshHome();
|
||||
else if (_screen == SCR_CHATS) refreshChats(); // counts moved on while locked
|
||||
else if (_screen == SCR_THREAD) reopenThreadIfUnread(); // on to what came in meanwhile
|
||||
}
|
||||
|
||||
bool UITask::locked() const { return devview::s_lock != nullptr; }
|
||||
|
||||
Reference in New Issue
Block a user