From cd2cbfa0efe3ccb5e350d9df546bc62803588b44 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 6 Jul 2023 00:39:02 +0200 Subject: ShowHiddenChannels: Fix crashing on canary --- src/plugins/showHiddenChannels/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 1aa484a..6f7728e 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -29,7 +29,7 @@ import type { Channel, Role } from "discord-types/general"; import HiddenChannelLockScreen, { setChannelBeginHeaderComponent } from "./components/HiddenChannelLockScreen"; -const ChannelListClasses = findByPropsLazy("channelName", "subtitle", "modeMuted", "iconContainer"); +const ChannelListClasses = findByPropsLazy("channelEmoji", "unread", "icon"); export const VIEW_CHANNEL = 1n << 10n; const CONNECT = 1n << 20n; @@ -472,7 +472,7 @@ export default definePlugin({ HiddenChannelLockScreen: (channel: any) => , - LockIcon: () => ( + LockIcon: ErrorBoundary.wrap(() => ( - ), + ), { noop: true }), HiddenChannelIcon: ErrorBoundary.wrap(() => ( -- cgit