emoji_picker: Directly use $elt.

This commit is contained in:
Aman Agrawal 2022-11-30 13:53:39 +00:00 committed by Tim Abbott
parent 96a93339cd
commit bab596e5b4
1 changed files with 1 additions and 1 deletions

View File

@ -675,8 +675,8 @@ export function toggle_emoji_popover(element, id, coming_from_actions_popover) {
return;
}
$(element).closest(".message_row").toggleClass("has_popover has_emoji_popover");
const $elt = $(element);
$elt.closest(".message_row").toggleClass("has_popover has_emoji_popover");
if (id !== undefined) {
message_lists.current.select_id(id);
}