aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-01-18 20:36:31 -0300
committerGitHub <noreply@github.com>2023-01-19 00:36:31 +0100
commitc4d2b4a8cd39fae7b1f453608d3cdc97a24f739d (patch)
treea9aec004fbcf2e9d088783db8542cf546dbf1114
parent08a2030bbc4378cc2f750794cc1fe0d5fcb98d28 (diff)
downloadVencord-c4d2b4a8cd39fae7b1f453608d3cdc97a24f739d.tar.gz
Vencord-c4d2b4a8cd39fae7b1f453608d3cdc97a24f739d.tar.bz2
Vencord-c4d2b4a8cd39fae7b1f453608d3cdc97a24f739d.zip
Fix message logger patch (#431)
-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 e650dbb..50a6f52 100644
--- a/src/plugins/messageLogger/index.tsx
+++ b/src/plugins/messageLogger/index.tsx
@@ -259,8 +259,8 @@ export default definePlugin({
replace: "$1,deleted=$2.attachment?.deleted,"
},
{
- match: /(hiddenSpoilers:\w,className:)/,
- replace: "$1 (deleted ? 'messageLogger-deleted-attachment ' : '') +"
+ match: /\["className","attachment","inlineMedia".+?className:/,
+ replace: "$& (deleted ? 'messageLogger-deleted-attachment ' : '') +"
}
]
},