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",