diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2022-10-27 15:25:51 -0300 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-27 20:26:54 +0200 |
commit | 6b0caaae370bfa38ee40a572fd99ca99fe94a248 (patch) | |
tree | d68cce64cfcb49eed6a70dacf01fdcc9ab44d1f8 /src | |
parent | c76e9f5e3d5a282a0e723593fcdc4cf996d419be (diff) | |
download | Vencord-6b0caaae370bfa38ee40a572fd99ca99fe94a248.tar.gz Vencord-6b0caaae370bfa38ee40a572fd99ca99fe94a248.tar.bz2 Vencord-6b0caaae370bfa38ee40a572fd99ca99fe94a248.zip |
fix(ShowHiddenChannels): Fix New unreads box for hidden channels #168
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) { |