aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/emoteCloner.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/emoteCloner.tsx')
-rw-r--r--src/plugins/emoteCloner.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/emoteCloner.tsx b/src/plugins/emoteCloner.tsx
index 4a018ec..809518c 100644
--- a/src/plugins/emoteCloner.tsx
+++ b/src/plugins/emoteCloner.tsx
@@ -220,8 +220,7 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) =
const name = match[1] ?? "FakeNitroEmoji";
const group = findGroupChildrenByChildId("copy-link", children);
- if (group && !group.some(child => child?.props?.id === "emote-cloner"))
- group.push(buildMenuItem(favoriteableId, name, isGifUrl(itemHref ?? itemSrc)));
+ if (group) group.push(buildMenuItem(favoriteableId, name, isGifUrl(itemHref ?? itemSrc)));
};
const expressionPickerPatch: NavContextMenuPatchCallback = (children, props: { target: HTMLElement; }) => {
@@ -230,8 +229,7 @@ const expressionPickerPatch: NavContextMenuPatchCallback = (children, props: { t
const firstChild = props.target.firstChild as HTMLImageElement;
- if (!children.some(c => c?.props?.id === "emote-cloner"))
- children.push(buildMenuItem(id, name, firstChild && isGifUrl(firstChild.src)));
+ children.push(buildMenuItem(id, name, firstChild && isGifUrl(firstChild.src)));
};
export default definePlugin({