diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 9cdf3049..52494210 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -74,6 +74,10 @@ export default definePlugin({ match: /if\(!\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL.+?{if\(this\.id===\i\).+?threadIds:\i}}/, replace: "" }, + { + match: /(?=!1===\i.\i\.hasRelevantUnread\(this\.record\))/, + replace: "$self.isHiddenChannel(this.record)||" + }, { match: /(?<=renderLevel:(\i\(this,\i\)\?\i\.Show:\i\.WouldShowIfUncollapsed).+?renderLevel:).+?(?=,)/, replace: (_, renderLevelExpression) => renderLevelExpression