From 4ab4b793a79adfb3d8a6e16991003b14c2868a05 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:32:09 -0400 Subject: [PATCH] fix CallTimer (#4280) --- src/plugins/callTimer/index.tsx | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/plugins/callTimer/index.tsx b/src/plugins/callTimer/index.tsx index d1d792fea..bf0bb1caa 100644 --- a/src/plugins/callTimer/index.tsx +++ b/src/plugins/callTimer/index.tsx @@ -81,17 +81,11 @@ export default definePlugin({ patches: [ { - find: "renderConnectionStatus(){", - replacement: [ - { - match: /(renderConnectionStatus\(\).{0,1000}?lineClamp:1,children:)(\i)(?=,|}\))/, - replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]" - }, - { - match: /("RTCConnectionMenu".{0,200}?lineClamp:1,children:)(\i)(?=,|}\))/, - replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]" - } - ] + find: '"RTCConnectionMenu"', + replacement: { + match: /("RTCConnectionMenu".{0,200}?lineClamp:1,children:)(\i)(?=,|}\))/, + replace: "$1[$2,$self.renderTimer({ channelId: this?.props?.channel?.id })]" + } }, ],