diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/showHiddenChannels.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/showHiddenChannels.tsx b/src/plugins/showHiddenChannels.tsx index 84f7c3e..b9f8270 100644 --- a/src/plugins/showHiddenChannels.tsx +++ b/src/plugins/showHiddenChannels.tsx @@ -93,6 +93,14 @@ export default definePlugin({ match: /(\w)\.connected,(\w)=(\w\.unread),(\w=\w\.canHaveDot)/g, replace: "$1.connected,$2=Vencord.Plugins.plugins.ShowHiddenChannels.isHiddenChannel($1.channel)?false:$3,$4" } + }, + { + // Hide New unreads box for hidden channels + find: '.displayName="ChannelListUnreadsStore"', + replacement: { + match: /((.)\.getGuildId\(\))(&&\(!\(.\.isThread.{1,100}\.hasRelevantUnread\()/, + replace: "$1&&!$2._isHiddenChannel$3" + } } ], shouldShow(channel, category, isMuted) { |