recent_view_ui: Make tooltip data compatible with buddy_data.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-12-10 23:22:11 -08:00
committed by Tim Abbott
parent df657e7208
commit 4f297bee32
2 changed files with 6 additions and 10 deletions

View File

@@ -232,16 +232,15 @@ export function info_for(user_id: number): BuddyUserInfo {
};
}
export function get_title_data(
user_ids_string: string,
is_group: boolean,
): {
export type TitleData = {
first_line: string;
second_line: string | undefined;
third_line: string;
show_you?: boolean;
is_deactivated?: boolean;
} {
};
export function get_title_data(user_ids_string: string, is_group: boolean): TitleData {
if (is_group) {
// For groups, just return a string with recipient names.
return {