rows: Fix type of 'message_group'.

This commit is contained in:
Varun Singh 2024-02-29 22:08:51 +05:30 committed by Tim Abbott
parent ead68e731b
commit 99ea6ae3fc
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ export function get_message_recipient_header($message_row: JQuery): JQuery {
return $message_row.parent(".recipient_row").find(".message_header").expectOne(); return $message_row.parent(".recipient_row").find(".message_header").expectOne();
} }
export function recipient_from_group(message_group: string): Message | undefined { export function recipient_from_group($message_group: JQuery): Message | undefined {
const message_id = id($(message_group).children(".message_row").first().expectOne()); const message_id = id($message_group.children(".message_row").first().expectOne());
return message_store.get(message_id); return message_store.get(message_id);
} }