From 3fdd0edf1466848d48fc3919e5648d47fb1858a7 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Oct 2023 20:24:17 +0200 Subject: [PATCH] Fix InvisibleChat --- src/plugins/invisibleChat.desktop/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/invisibleChat.desktop/index.tsx b/src/plugins/invisibleChat.desktop/index.tsx index e55f1e0c6..c80c4ce54 100644 --- a/src/plugins/invisibleChat.desktop/index.tsx +++ b/src/plugins/invisibleChat.desktop/index.tsx @@ -131,7 +131,7 @@ export default definePlugin({ // Indicator find: ".Messages.MESSAGE_EDITED,", replacement: { - match: /var .,.,.=(.)\.className,.=.\.message,.=.\.children,.=.\.content,.=.\.onUpdate/gm, + match: /let\{className:\i,message:\i[^}]*\}=(\i)/, replace: "try {$1 && $self.INV_REGEX.test($1.message.content) ? $1.content.push($self.indicator()) : null } catch {};$&" } },