Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_topics: Rename count_senders for clarity.
Aman Agrawald7d5bc208c1f
diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.jsindex ddd274b3ea0..94007c87787 100644--- a/frontend_tests/node_tests/recent_topics.js+++ b/frontend_tests/node_tests/recent_topics.js@@ -262,7 +262,7 @@ function generate_topic_data(topic_info_array) {selectors.push(topic_selector);data.push({- count_senders: 0,+ other_senders_count: 0,invite_only: false,is_web_public: true,last_msg_time: 'Just now',diff --git a/static/js/recent_topics.js b/static/js/recent_topics.jsindex da70fb48643..16f6697448e 100644--- a/static/js/recent_topics.js+++ b/static/js/recent_topics.js@@ -116,7 +116,7 @@ function format_topic(topic_data) {last_msg_time: last_msg_time,topic_url: hash_util.by_stream_topic_uri(stream_id, topic),senders: senders_info,- count_senders: Math.max(0, all_senders.length - MAX_AVATAR),+ other_senders_count: Math.max(0, all_senders.length - MAX_AVATAR),muted: muted,topic_muted: topic_muted,participated: topic_data.participated,diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbsindex 41c56c9c6f5..b92b67f1d8f 100644--- a/static/templates/recent_topic_row.hbs+++ b/static/templates/recent_topic_row.hbs@@ -19,9 +19,9 @@</td><td class='recent_topic_users'><ul class="recent_avatars">- {{#if count_senders}}+ {{#if other_senders_count}}<li class="recent_avatars_item">- <span class="recent_avatars_others">+{{count_senders}}</span>+ <span class="recent_avatars_others">+{{other_senders_count}}</span></li>{{/if}}{{#each senders}}