From 8a54732ecf25264f47c9f82fbc431ebedba6c852 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:57:19 -0400 Subject: [PATCH] updates --- src/equicordplugins/hideMessage/index.tsx | 3 ++- src/equicordplugins/messageLoggerEnhanced/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/hideMessage/index.tsx b/src/equicordplugins/hideMessage/index.tsx index 1ea82497..61c9274e 100644 --- a/src/equicordplugins/hideMessage/index.tsx +++ b/src/equicordplugins/hideMessage/index.tsx @@ -81,7 +81,7 @@ const buildCss = () => { width: 2px; } :is(${elements}) [id^='message-accessories'] > *:not(.vc-hide-message-accessory), - :is(${elements}) [id^='message-content'] > * { + :is(${elements}) [id^='message-content']:not([class^='repliedTextContent']) > * { display: none !important; } :is(${elements}) [id^='message-content']:empty { @@ -130,6 +130,7 @@ export default definePlugin({ name: "HideMessage", description: "Adds a context menu option to hide messages", authors: [EquicordDevs.Hanzy], + dependencies: ["MessageAccessoriesAPI", "MessagePopoverAPI"], settings, contextMenus: { diff --git a/src/equicordplugins/messageLoggerEnhanced/index.tsx b/src/equicordplugins/messageLoggerEnhanced/index.tsx index 09348d44..76c58112 100644 --- a/src/equicordplugins/messageLoggerEnhanced/index.tsx +++ b/src/equicordplugins/messageLoggerEnhanced/index.tsx @@ -620,7 +620,7 @@ export default definePlugin({ { find: ".removeMosaicItemHoverButton", replacement: { - match: /(\i=(\i)=>{)(.{1,3550}isSingleMosaicItem)/, + match: /(\i=(\i)=>{)(.{1,3600}isSingleMosaicItem)/, replace: "$1 let forceUpdate=Vencord.Util.useForceUpdater();$self.patchAttachments($2,forceUpdate);$3" } },