diff options
author | V <vendicated@riseup.net> | 2023-07-06 00:39:02 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-07-06 00:43:43 +0200 |
commit | cd2cbfa0efe3ccb5e350d9df546bc62803588b44 (patch) | |
tree | 07f70a5a0b5960cc5c04c2702ac23aa42a4043ea /src/plugins | |
parent | 232e340fab83757bc3ed023560236b1fb576c3cc (diff) | |
download | Vencord-cd2cbfa0efe3ccb5e350d9df546bc62803588b44.tar.gz Vencord-cd2cbfa0efe3ccb5e350d9df546bc62803588b44.tar.bz2 Vencord-cd2cbfa0efe3ccb5e350d9df546bc62803588b44.zip |
ShowHiddenChannels: Fix crashing on canary
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/showHiddenChannels/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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) => <HiddenChannelLockScreen channel={channel} />, - LockIcon: () => ( + LockIcon: ErrorBoundary.wrap(() => ( <svg className={ChannelListClasses.icon} height="18" @@ -483,7 +483,7 @@ export default definePlugin({ > <path className="shc-evenodd-fill-current-color" d="M17 11V7C17 4.243 14.756 2 12 2C9.242 2 7 4.243 7 7V11C5.897 11 5 11.896 5 13V20C5 21.103 5.897 22 7 22H17C18.103 22 19 21.103 19 20V13C19 11.896 18.103 11 17 11ZM12 18C11.172 18 10.5 17.328 10.5 16.5C10.5 15.672 11.172 15 12 15C12.828 15 13.5 15.672 13.5 16.5C13.5 17.328 12.828 18 12 18ZM15 11H9V7C9 5.346 10.346 4 12 4C13.654 4 15 5.346 15 7V11Z" /> </svg> - ), + ), { noop: true }), HiddenChannelIcon: ErrorBoundary.wrap(() => ( <Tooltip text="Hidden Channel"> |