Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view: Drop unread header for spectators.
Aman Agrawal47cdffb5fb4f
diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.jsindex 6e65f113a9d..67be119d7b7 100644--- a/web/src/recent_view_ui.js+++ b/web/src/recent_view_ui.js@@ -604,6 +604,7 @@ function format_conversation(conversation_data) {.map((name) => _.escape(name)).join("<br />");context.last_msg_url = hash_util.by_conversation_and_time_url(last_msg);+ context.is_spectator = page_params.is_spectator;return context;}diff --git a/web/templates/recent_view_row.hbs b/web/templates/recent_view_row.hbsindex 3fc2104d85c..75be3017c76 100644--- a/web/templates/recent_view_row.hbs+++ b/web/templates/recent_view_row.hbs@@ -28,7 +28,7 @@{{/if}}</div></td>- <td class="recent_topic_name" colspan="2">+ <td class="recent_topic_name"{{#if (not is_spectator) }} colspan="2"{{/if}}><div class="flex_container"><div class="left_part recent_view_focusable line_clamp">{{#if is_private}}diff --git a/web/templates/recent_view_table.hbs b/web/templates/recent_view_table.hbsindex 3489e0aa4bb..7b72d23c10c 100644--- a/web/templates/recent_view_table.hbs+++ b/web/templates/recent_view_table.hbs@@ -17,7 +17,7 @@<tr><th data-sort="stream_sort">{{t 'Stream' }}</th><th data-sort="topic_sort">{{t 'Topic' }}</th>- <th data-sort="unread_sort" data-tippy-content="{{t 'Sort by unread message count' }}" class="unread_sort tippy-zulip-delayed-tooltip">+ <th data-sort="unread_sort" data-tippy-content="{{t 'Sort by unread message count' }}" class="unread_sort tippy-zulip-delayed-tooltip hidden-for-spectators"><i class="zulip-icon zulip-icon-unread"></i></th><th class='participants_header'>{{t 'Participants' }}</th>diff --git a/web/tests/recent_view.test.js b/web/tests/recent_view.test.jsindex 1a88e45606b..ba5a80b4c3d 100644--- a/web/tests/recent_view.test.js+++ b/web/tests/recent_view.test.js@@ -405,6 +405,7 @@ function generate_topic_data(topic_info_array) {mention_in_unread: false,visibility_policy,all_visibility_policies,+ is_spectator: page_params.is_spectator,});}return data;