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.

message_edit_history: Fix implicit use of any.

Anders Kaseorg52a992d858c2
diff --git a/web/src/message_edit_history.ts b/web/src/message_edit_history.ts
index b47da2f8818..b48f9e8405e 100644
--- a/web/src/message_edit_history.ts
+++ b/web/src/message_edit_history.ts
@@ -289,11 +289,11 @@ export function initialize(): void {
}
});
- $("body").on("click", ".message_edit_notice", (e) => {
+ $("body").on("click", ".message_edit_notice", function (this: HTMLElement, e) {
e.stopPropagation();
e.preventDefault();
- const message_id = rows.id($(e.currentTarget).closest(".message_row"));
+ const message_id = rows.id($(this).closest(".message_row"));
assert(message_lists.current !== undefined);
const $row = message_lists.current.get_row(message_id);
const row_id = rows.id($row);