From e34da54271ed8027d337a484f0ec00749c71a53b Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 12 Apr 2023 23:22:38 -0300 Subject: Option to transform emotes/stickers in compound messages (#876) + ContextMenu refactor to not call callbacks for same children multiple times Co-authored-by: V --- src/plugins/reverseImageSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/reverseImageSearch.tsx') diff --git a/src/plugins/reverseImageSearch.tsx b/src/plugins/reverseImageSearch.tsx index 4e0a361..74b2619 100644 --- a/src/plugins/reverseImageSearch.tsx +++ b/src/plugins/reverseImageSearch.tsx @@ -43,7 +43,7 @@ const imageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => const src = itemHref ?? itemSrc; const group = findGroupChildrenByChildId("copy-link", children); - if (group && !group.some(child => child?.props?.id === "search-image")) { + if (group) { group.push((