SHC: fix hidden channels not muted (#3245)

This commit is contained in:
Suffocate 2025-02-21 19:27:31 +00:00 committed by GitHub
parent b5ef858e71
commit 45c0fc48ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ export default definePlugin({
replacement: [
// Make the channel appear as muted if it's hidden
{
match: /{channel:(\i),name:\i,muted:(\i).+?;/,
match: /\.subtitle,.+?;(?=return\(0,\i\.jsxs?\))(?<={channel:(\i),name:\i,muted:(\i).+?;)/,
replace: (m, channel, muted) => `${m}${muted}=$self.isHiddenChannel(${channel})?true:${muted};`
},
// Add the hidden eye icon if the channel is hidden