From 09f65b401e53827035ed83d9363ddbd4a1d875c6 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 12 Sep 2023 04:28:21 -0300 Subject: [PATCH] Fix broken MessageLogger patches --- src/plugins/messageLogger/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index 9c665607f..645892810 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -326,14 +326,14 @@ export default definePlugin({ { // Attachment renderer // Module 96063 - find: "[\"className\",\"attachment\",\"inlineMedia\"", + find: "().removeAttachmentHoverButton", replacement: [ { match: /((\w)\.className,\w=\2\.attachment),/, replace: "$1,deleted=$2.attachment?.deleted," }, { - match: /\["className","attachment","inlineMedia".+?className:/, + match: /\["className","attachment".+?className:/, replace: "$& (deleted ? 'messagelogger-deleted-attachment ' : '') +" } ]