recent_topics: Rename count_senders for clarity.

This commit is contained in:
Aman Agrawal 2020-06-12 15:37:48 +05:30 committed by Tim Abbott
parent 0eda671299
commit d7d5bc208c
3 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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,

View File

@ -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}}