From ce4d5ea1da2b7a00d2426d2da10b6a46f2580ab7 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Fri, 29 May 2026 11:12:30 +0200 Subject: [PATCH] Revert "fix(ui/favourites): DM unread badge cleared by companion app sync" This reverts commit f6d10bb8b20fc7a05f6bf59643dc775271a3f2bc. --- examples/companion_radio/ui-new/UITask.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/companion_radio/ui-new/UITask.cpp b/examples/companion_radio/ui-new/UITask.cpp index f7be4cd5..3af5ea3b 100644 --- a/examples/companion_radio/ui-new/UITask.cpp +++ b/examples/companion_radio/ui-new/UITask.cpp @@ -1344,9 +1344,7 @@ void UITask::msgRead(int msgcount) { _msgcount = msgcount; if (msgcount == 0) { _room_unread = 0; - // Do NOT clear _dm_unread_table here — it tracks per-contact UI badges - // independently of the offline queue. Badges are cleared only when the - // user opens the DM (clearDMUnread) or explicitly marks all read. + memset(_dm_unread_table, 0, sizeof(_dm_unread_table)); ((QuickMsgScreen*)quick_msg)->clearAllChannelUnread(); } }