Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
right_sidebar: Simplify and shorten heading titles.
evykassirer5f124ad117ef
diff --git a/web/src/buddy_list.ts b/web/src/buddy_list.tsindex 402daf1482f..f69ad48eb6e 100644--- a/web/src/buddy_list.ts+++ b/web/src/buddy_list.ts@@ -440,12 +440,12 @@ export class BuddyList extends BuddyListConf {const {current_sub, total_human_subscribers_count, other_users_count} = this.render_data;$(".buddy-list-subsection-header").empty();- // If we're in the mode of hiding headers, that means we're only showing the "other users"+ // If we're in the mode of hiding headers, that means we're only showing the "others"// section, so hide the other two sections.$("#buddy-list-users-matching-view-container").toggleClass("no-display", hide_headers);// This is the case where every subscriber is in the participants list. In this case, we- // hide the "others in this channel" section.+ // hide the "in this channel" section.if (show_participants_list &&total_human_subscribers_count === this.participant_user_ids.length@@ -457,22 +457,15 @@ export class BuddyList extends BuddyListConf {return;}- let header_text;- if (current_sub) {- if (all_participant_ids.size) {- header_text = $t({defaultMessage: "OTHERS IN THIS CHANNEL"});- } else {- header_text = $t({defaultMessage: "IN THIS CHANNEL"});- }- } else {- header_text = $t({defaultMessage: "IN THIS CONVERSATION"});- }+ const header_text = current_sub+ ? $t({defaultMessage: "THIS CHANNEL"})+ : $t({defaultMessage: "THIS CONVERSATION"});$("#buddy-list-participants-container .buddy-list-subsection-header").append($(render_section_header({id: "buddy-list-participants-section-heading",- header_text: $t({defaultMessage: "IN THIS CONVERSATION"}),+ header_text: $t({defaultMessage: "THIS CONVERSATION"}),user_count: get_formatted_sub_count(all_participant_ids.size),is_collapsed: this.participants_is_collapsed,}),