Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Apply summary counter setting only to home view.

Evy Kassirer07b05f3c78ed
diff --git a/help/configure-unread-message-counters.md b/help/configure-unread-message-counters.md
index 08a11bfe959..57ae8586e40 100644
--- a/help/configure-unread-message-counters.md
+++ b/help/configure-unread-message-counters.md
@@ -27,7 +27,7 @@ opening it.
## Configure unread summary counters
You can configure whether Zulip displays unread count summaries on your home
-view and channels section in the left sidebar. You will still be able to see the
+view in the left sidebar. You will still be able to see the
summary counts by moving your mouse over them in the left sidebar. The counter
on your home view will also be shown when you're in that view.
@@ -46,8 +46,7 @@ on your home view will also be shown when you're in that view.
{settings_tab|preferences}
-1. Under **Information**, toggle **Show unread count summaries in the
- left sidebar**.
+1. Under **Information**, toggle **Show unread count total on home view**.
{end_tabs}
diff --git a/web/src/left_sidebar_navigation_area.ts b/web/src/left_sidebar_navigation_area.ts
index 57411db9db7..15a1618e3ba 100644
--- a/web/src/left_sidebar_navigation_area.ts
+++ b/web/src/left_sidebar_navigation_area.ts
@@ -16,7 +16,6 @@ import * as stream_list_sort from "./stream_list_sort.ts";
import * as sub_store from "./sub_store.ts";
import * as ui_util from "./ui_util.ts";
import * as unread from "./unread.ts";
-import {user_settings} from "./user_settings.ts";
let last_mention_count = 0;
const ls_key = "left_sidebar_views_state";
@@ -77,16 +76,6 @@ export function update_reminders_row(): void {
ui_util.update_unread_count_in_dom($reminders_li, count);
}
-function should_mask_header_unread_count(
- show_muted: boolean,
- unmuted_unread_count: number,
-): boolean {
- if (!user_settings.web_left_sidebar_unreads_count_summary) {
- return true;
- }
- return settings_data.should_mask_unread_count(show_muted, unmuted_unread_count);
-}
-
type SectionUnreadCount = {
// These both include inactive unreads as well.
unmuted: number;
@@ -173,7 +162,7 @@ export function update_dom_with_unread_counts(
$header.toggleClass("has-only-muted-unreads", show_muted_count);
$header.toggleClass(
"hide_unread_counts",
- should_mask_header_unread_count(show_muted_count, unmuted_count),
+ settings_data.should_mask_unread_count(show_muted_count, unmuted_count),
);
}
diff --git a/web/src/settings_config.ts b/web/src/settings_config.ts
index d83ac2e63b3..e445a7301f3 100644
--- a/web/src/settings_config.ts
+++ b/web/src/settings_config.ts
@@ -636,7 +636,7 @@ export const preferences_settings_labels = {
receives_typing_notifications: $t({defaultMessage: "Show when other users are typing"}),
starred_message_counts: $t({defaultMessage: "Show counts for starred messages"}),
web_left_sidebar_unreads_count_summary: $t({
- defaultMessage: "Show unread count summaries in the left sidebar",
+ defaultMessage: "Show unread count total on home view",
}),
twenty_four_hour_time: $t({defaultMessage: "Time format"}),
translate_emoticons: new Handlebars.SafeString(