From 4f8c75372cd63f891f21452f6144823a646c26f6 Mon Sep 17 00:00:00 2001 From: redstonekasi Date: Wed, 25 Oct 2023 18:09:04 +0200 Subject: [PATCH] fix: NoBlockedMessages (#1870) --- src/plugins/noBlockedMessages/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/noBlockedMessages/index.ts b/src/plugins/noBlockedMessages/index.ts index 54bb2d05..f9de3e13 100644 --- a/src/plugins/noBlockedMessages/index.ts +++ b/src/plugins/noBlockedMessages/index.ts @@ -29,11 +29,11 @@ export default definePlugin({ authors: [Devs.rushii, Devs.Samu], patches: [ { - find: 'safety_prompt:"DMSpamExperiment",response:"show_redacted_messages"', + find: "Messages.BLOCKED_MESSAGES_HIDE", replacement: [ { - match: /\.collapsedReason;return/, - replace: ".collapsedReason;return null;return;" + match: /let\{[^}]*collapsedReason[^}]*\}/, + replace: "return null;$&" } ] },