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.

user_group_popover: Fix implicit use of any.

Anders Kaseorg7cd3a99aad88
diff --git a/web/src/user_group_popover.ts b/web/src/user_group_popover.ts
index 57c7e374f10..9ab7ddfa2f7 100644
--- a/web/src/user_group_popover.ts
+++ b/web/src/user_group_popover.ts
@@ -112,10 +112,10 @@ export function toggle_user_group_info_popover(
}
export function register_click_handlers(): void {
- $("#main_div").on("click", ".user-group-mention", (e) => {
+ $("#main_div").on("click", ".user-group-mention", function (this: HTMLElement, e) {
e.stopPropagation();
- const $elt = $(e.currentTarget);
+ const $elt = $(this);
const $row = $elt.closest(".message_row");
const message_id = rows.id($row);
@@ -124,7 +124,7 @@ export function register_click_handlers(): void {
assert(message !== undefined);
try {
- toggle_user_group_info_popover(e.currentTarget, message.id);
+ toggle_user_group_info_popover(this, message.id);
} catch {
// This user group has likely been deleted.
blueslip.info("Unable to find user group in message" + message.sender_id);