Fix some hidden channels not collapsing
This commit is contained in:
parent
2f94e167c4
commit
0847f205b8
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ export default definePlugin({
|
||||||
match: /if\(!\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL.+?{if\(this\.id===\i\).+?threadIds:\i}}/,
|
match: /if\(!\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL.+?{if\(this\.id===\i\).+?threadIds:\i}}/,
|
||||||
replace: ""
|
replace: ""
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
match: /(?=!1===\i.\i\.hasRelevantUnread\(this\.record\))/,
|
||||||
|
replace: "$self.isHiddenChannel(this.record)||"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
match: /(?<=renderLevel:(\i\(this,\i\)\?\i\.Show:\i\.WouldShowIfUncollapsed).+?renderLevel:).+?(?=,)/,
|
match: /(?<=renderLevel:(\i\(this,\i\)\?\i\.Show:\i\.WouldShowIfUncollapsed).+?renderLevel:).+?(?=,)/,
|
||||||
replace: (_, renderLevelExpression) => renderLevelExpression
|
replace: (_, renderLevelExpression) => renderLevelExpression
|
||||||
|
|
Loading…
Reference in a new issue