Home Messages page: show total unread count (DM + all channels)

Sums getMsgCount() (DM unreads) and getTotalChannelUnread() (sum of
_ch_unread[] across all channels) and displays "N unread" under the
"Messages" heading when non-zero.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-13 21:09:47 +02:00
co-authored by Claude Sonnet 4.6
parent ef24bb8554
commit 1ba59d2236
2 changed files with 18 additions and 9 deletions
+1
View File
@@ -86,6 +86,7 @@ public:
void showAlert(const char* text, int duration_millis);
void addChannelMsg(uint8_t channel_idx, const char* text) override;
int getMsgCount() const { return _msgcount; }
int getChannelUnreadCount() const;
bool hasDisplay() const { return _display != NULL; }
bool isButtonPressed() const;