aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageLogger/index.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-09-12 04:28:21 -0300
committerNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-09-12 04:28:55 -0300
commit09f65b401e53827035ed83d9363ddbd4a1d875c6 (patch)
tree319c862b89c1135d6898030d518d622bf6b1df3d /src/plugins/messageLogger/index.tsx
parent736477671542f0d1554d45faba8b5249d8e913c1 (diff)
downloadVencord-09f65b401e53827035ed83d9363ddbd4a1d875c6.tar.gz
Vencord-09f65b401e53827035ed83d9363ddbd4a1d875c6.tar.bz2
Vencord-09f65b401e53827035ed83d9363ddbd4a1d875c6.zip
Fix broken MessageLogger patches
Diffstat (limited to 'src/plugins/messageLogger/index.tsx')
-rw-r--r--src/plugins/messageLogger/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx
index 9c66560..6458928 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 ' : '') +"
}
]