message_list_data: Update callback parameter types.

Correct the type annotations for the callback function parameter in
set_add_messages_callback.
This commit is contained in:
afeefuddin 2024-06-15 18:56:40 +05:30 committed by Tim Abbott
parent 17e2d46760
commit 8741fe92be
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}