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 })]" + } }, ],