Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Offer mark as unread regardless of fetch_status.
Tim Abbott3aec5564eb17
diff --git a/frontend_tests/node_tests/popovers.js b/frontend_tests/node_tests/popovers.jsindex f48dc39cf2e..af724ac432a 100644--- a/frontend_tests/node_tests/popovers.js+++ b/frontend_tests/node_tests/popovers.js@@ -27,11 +27,6 @@ const message_lists = mock_esm("../../static/js/message_lists", {view: {message_containers: {},},- data: {- fetch_status: {- has_found_newest: () => true,- },- },},});mock_esm("../../static/js/message_viewport", {diff --git a/static/js/popovers.js b/static/js/popovers.jsindex 21fb5edafa4..af7635cca80 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -582,10 +582,7 @@ export function toggle_actions_popover(element, id) {const subscribed_to_stream =message.type === "stream" && stream_data.is_subscribed(message.stream_id);const should_display_mark_as_unread =- message_lists.current.data.fetch_status.has_found_newest() &&- !message.unread &&- not_spectator &&- (not_stream_message || subscribed_to_stream);+ !message.unread && not_spectator && (not_stream_message || subscribed_to_stream);const should_display_edit_history_option =message.edit_history &&