message_lists: Add field `message_containers` to `MessageListView` type.

This commit is contained in:
Varun Singh 2024-08-21 22:17:51 +05:30 committed by Tim Abbott
parent 79dbb8dc79
commit 1ce76e5fbd
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,14 @@ import type {MessageListData} from "./message_list_data";
import type {Message} from "./message_store";
import * as ui_util from "./ui_util";
// TODO(typescript): Move this to message_list_view when it's
// converted to TypeScript.
export type MessageContainer = {
msg: Message;
is_hidden: boolean;
url: string;
};
// TODO(typescript): Move this to message_list_view when it's
// converted to typescript.
type MessageListView = {
@ -17,6 +25,7 @@ type MessageListView = {
show_message_as_read: (message: Message, options: {from?: "pointer" | "server"}) => void;
show_messages_as_unread: (message_ids: number[]) => void;
change_message_id: (old_id: number, new_id: number) => void;
message_containers: Map<number, MessageContainer>;
_render_win_start: number;
_render_win_end: number;
sticky_recipient_message_id: number | undefined;