From 2bd88254a1df985e831c2eebf1aa6b0732623e16 Mon Sep 17 00:00:00 2001 From: Pratik Chanda Date: Wed, 29 Jan 2025 03:07:37 +0530 Subject: [PATCH] tooltip: Fix unread count for home view tooltip includes muted messages. Earlier, unread_count in home view tooltip was set to total unread messages while we normally exclude muted messages from unread_count. This commit changes this by setting it to `home_unread_messages`. --- web/src/tippyjs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.ts index 11e70c45e8..a4983f4751 100644 --- a/web/src/tippyjs.ts +++ b/web/src/tippyjs.ts @@ -200,7 +200,7 @@ export function initialize(): void { switch (sidebar_option) { case user_settings.web_home_view: $container.find(".views-tooltip-home-view-note").removeClass("hide"); - display_count = unread.get_unread_message_count(); + display_count = unread.get_counts().home_unread_messages; $container.find(".views-message-count").text( $t( {