popovers: Offer mark as unread regardless of fetch_status.

Now that we're using the new /messages/flags/narrow API endpoint, we
don't need this conditional.
This commit is contained in:
Tim Abbott 2022-11-16 20:12:43 -08:00
parent 0bc0a701f8
commit 3aec5564eb
2 changed files with 1 additions and 9 deletions

View File

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

View File

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