fix CallTimer (#4280)

This commit is contained in:
thororen 2026-06-08 10:32:09 -04:00 • committed by GitHub
parent bc0791b476
commit 4ab4b793a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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