From e0becc1ba0c5d7e93b758188865f1d53b7dca0a0 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 7 Apr 2024 21:46:32 +0200 Subject: [PATCH] ShowHiddenChannels: Fix incompatibility with favorite channels experiment --- src/plugins/showHiddenChannels/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 31dc93ad..ce4a47ad 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -452,7 +452,7 @@ export default definePlugin({ { // Filter hidden channels from GuildChannelStore.getChannels unless told otherwise match: /(?<=getChannels\(\i)(\){.+?)return (.+?)}/, - replace: (_, rest, channels) => `,shouldIncludeHidden${rest}return $self.resolveGuildChannels(${channels},shouldIncludeHidden??false);}` + replace: (_, rest, channels) => `,shouldIncludeHidden${rest}return $self.resolveGuildChannels(${channels},shouldIncludeHidden??arguments[0]==="@favorites");}` } ] },