message_list_view: Use more specific type for message_id_to_focus.

This commit is contained in:
evykassirer 2024-09-11 15:11:19 -07:00 committed by Tim Abbott
parent 93d8db11bf
commit 0c4186d91f
1 changed files with 11 additions and 5 deletions

View File

@ -336,11 +336,17 @@ function get_users_for_recipient_row(message: Message): RecipientRowUser[] {
return users.sort(compare_by_name);
}
let message_id_to_focus_after_processing_message_events: {
id: number | undefined;
selectionStart: number | undefined;
selectionEnd: number | undefined;
} = {
let message_id_to_focus_after_processing_message_events:
| {
id: number;
selectionStart: number;
selectionEnd: number;
}
| {
id: undefined;
selectionStart: undefined;
selectionEnd: undefined;
} = {
id: undefined,
selectionStart: undefined,
selectionEnd: undefined,