From d06fcf84e05b7017283f69df53e676cbc8021d37 Mon Sep 17 00:00:00 2001 From: Etorix <92535668+EtorixDev@users.noreply.github.com> Date: Thu, 7 Aug 2025 00:32:13 -0700 Subject: [PATCH] SilentTyping: Fix patch (#328) * Fix patch. * Fix for real this time. --- src/plugins/silentTyping/index.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/plugins/silentTyping/index.tsx b/src/plugins/silentTyping/index.tsx index 3c378d708..29b5fcf83 100644 --- a/src/plugins/silentTyping/index.tsx +++ b/src/plugins/silentTyping/index.tsx @@ -308,10 +308,17 @@ export default definePlugin({ }, { find: "activityInviteEducationActivity:", - replacement: { - match: /(typingDots,ref:\i,children:)(\[.{0,300}?}\)\])/, - replace: "$1$self.shouldHideChatBarTypingIndicators()?[]:$2" - } + group: true, + replacement: [ + { + match: /(let{activityInviteEducationActivity)/, + replace: "const silentTypingShouldHideChatBarTypingIndicators=$self.shouldHideChatBarTypingIndicators();$1" + }, + { + match: /(typingDots,ref:\i,children:)(\[.{0,340}?}\)\])/, + replace: "$1silentTypingShouldHideChatBarTypingIndicators?[]:$2" + } + ] }, { find: ",{avatarCutoutX",