Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list: Use `MessageList.all_messages` for displayed messages.
Aman Agrawal2a16d9b86cb7
diff --git a/web/src/stream_popover.ts b/web/src/stream_popover.tsindex c6dba0785d5..cc4a9ae5152 100644--- a/web/src/stream_popover.ts+++ b/web/src/stream_popover.ts@@ -298,7 +298,7 @@ async function get_message_placement_in_conversation(// we can find the adjacent messages in the current view// through which we can determine if the message is an// intermediate message or not.- const msg_list = message_lists.current.data.all_messages_after_mute_filtering();+ const msg_list = message_lists.current.all_messages();let found_newer_matching_message = false;let found_older_matching_message = false;const current_dict = {diff --git a/web/src/unread_ui.ts b/web/src/unread_ui.tsindex af3dcefafdf..376416114a8 100644--- a/web/src/unread_ui.ts+++ b/web/src/unread_ui.ts@@ -117,8 +117,8 @@ export function initialize({// BUG: This logic only supports marking messages visible in// the present view as read; we need a server API to mark// every message matching the current search as read.- const unread_messages = message_lists.current.data- .all_messages_after_mute_filtering()+ const unread_messages = message_lists.current+ .all_messages().filter((message) => message.unread);notify_server_messages_read(unread_messages);// New messages received may be marked as read based on narrow type.