From 77ee8e7bc372923e11c2746a4c7ba3daa9ded2ca Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:01:40 -0400 Subject: [PATCH] Fix duplicate reply for searchreply --- src/plugins/searchReply/README.md | 6 ------ src/plugins/searchReply/index.tsx | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 src/plugins/searchReply/README.md diff --git a/src/plugins/searchReply/README.md b/src/plugins/searchReply/README.md deleted file mode 100644 index b06798f7..00000000 --- a/src/plugins/searchReply/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# SearchReply - -Adds a reply button to search results. - -![the plugin in action](https://github.com/Vendicated/Vencord/assets/45497981/07e741d3-0f97-4e5c-82b0-80712ecf2cbb) - diff --git a/src/plugins/searchReply/index.tsx b/src/plugins/searchReply/index.tsx index 298e7421..2e8da762 100644 --- a/src/plugins/searchReply/index.tsx +++ b/src/plugins/searchReply/index.tsx @@ -35,7 +35,7 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { messag if (channel.guild_id && !PermissionStore.can(PermissionsBits.SEND_MESSAGES, channel)) return; // dms and group chats - const dmGroup = findGroupChildrenByChildId("pin", children); + const dmGroup = findGroupChildrenByChildId("create-thread", children); if (dmGroup && !dmGroup.some(child => child?.props?.id === "reply")) { const pinIndex = dmGroup.findIndex(c => c?.props.id === "pin"); dmGroup.splice(pinIndex + 1, 0, ( @@ -50,7 +50,7 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { messag } // servers - const serverGroup = findGroupChildrenByChildId("mark-unread", children); + const serverGroup = findGroupChildrenByChildId("create-thread", children); if (serverGroup && !serverGroup.some(child => child?.props?.id === "reply")) { serverGroup.unshift((