Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

rows: Fix inaccurate types of parameters of a couple functions.

afeefuddine9bf3825d405
diff --git a/web/src/rows.ts b/web/src/rows.ts
index 76508ebbd52..6358fbb2eb9 100644
--- a/web/src/rows.ts
+++ b/web/src/rows.ts
@@ -119,14 +119,14 @@ export function get_message_id(elem: HTMLElement): number {
return message_id;
}
-export function get_closest_group(element: string): JQuery {
+export function get_closest_group(element: HTMLElement): JQuery {
// This gets the closest message row to an element, whether it's
// a recipient bar or message. With our current markup,
// this is the most reliable way to do it.
return $(element).closest("div.recipient_row");
}
-export function get_closest_row(element: string): JQuery {
+export function get_closest_row(element: HTMLElement): JQuery {
return $(element).closest("div.message_row");
}