From 8741fe92be31c8adf4a682a6087c0794363c227c Mon Sep 17 00:00:00 2001 From: afeefuddin Date: Sat, 15 Jun 2024 18:56:40 +0530 Subject: [PATCH] message_list_data: Update callback parameter types. Correct the type annotations for the callback function parameter in set_add_messages_callback. --- web/src/message_list_data.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/message_list_data.ts b/web/src/message_list_data.ts index a93d28d814..5d89a59c91 100644 --- a/web/src/message_list_data.ts +++ b/web/src/message_list_data.ts @@ -64,7 +64,9 @@ export class MessageListData { this._selected_id = -1; } - set_add_messages_callback(callback: () => void): void { + set_add_messages_callback( + callback: (messages: Message[], rows_order_changed: boolean) => void, + ): void { this.add_messages_callback = callback; }