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`.
This commit is contained in:
Pratik Chanda
2025-01-29 03:07:37 +05:30
committed by Tim Abbott
parent ee8cb9c926
commit 2bd88254a1

View File

@@ -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(
{