diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-04-12 23:22:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 04:22:38 +0200 |
commit | e34da54271ed8027d337a484f0ec00749c71a53b (patch) | |
tree | 7d0e15f471bf1000ab7eb552350dff8648de0f05 /src/plugins/reverseImageSearch.tsx | |
parent | cfe41ef656085e3b3ed2e0ac68020b546045b55b (diff) | |
download | Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.gz Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.bz2 Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.zip |
Option to transform emotes/stickers in compound messages (#876)
+ ContextMenu refactor to not call callbacks for same children multiple times
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/reverseImageSearch.tsx')
-rw-r--r-- | src/plugins/reverseImageSearch.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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(( <Menu.MenuItem label="Search Image" |