mirror of https://github.com/zulip/zulip.git
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:
parent
0bc0a701f8
commit
3aec5564eb
|
@ -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", {
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue