From 1ce76e5fbde3e331dc7ecec930aed4cc46c9542b Mon Sep 17 00:00:00 2001 From: Varun Singh Date: Wed, 21 Aug 2024 22:17:51 +0530 Subject: [PATCH] message_lists: Add field `message_containers` to `MessageListView` type. --- web/src/message_lists.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/message_lists.ts b/web/src/message_lists.ts index 2665860dc6..fcd0d2ec27 100644 --- a/web/src/message_lists.ts +++ b/web/src/message_lists.ts @@ -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; _render_win_start: number; _render_win_end: number; sticky_recipient_message_id: number | undefined;