From 0f93c6516b0ef67a339f7bb0a93a47d1793453e9 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 31 Jul 2025 22:16:25 -0400 Subject: [PATCH] SidebarChat: Fix --- src/equicordplugins/sidebarChat/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/sidebarChat/index.tsx b/src/equicordplugins/sidebarChat/index.tsx index 8f8f3b70c..564fd048c 100644 --- a/src/equicordplugins/sidebarChat/index.tsx +++ b/src/equicordplugins/sidebarChat/index.tsx @@ -41,11 +41,15 @@ import { import { settings, SidebarStore } from "./store"; -const { HeaderBar, HeaderBarIcon } = mapMangledModuleLazy(".themedMobile]:", { - HeaderBarIcon: filters.componentByCode(".HEADER_BAR_BADGE_TOP:", '.iconBadge,"top"'), +// ??? no clue why this HeaderBarIcon doesnt work, its the same as the one below +const { HeaderBar, /* HeaderBarIcon*/ } = mapMangledModuleLazy(".themedMobile]:", { + HeaderBarIcon: filters.componentByCode('size:"custom",'), HeaderBar: filters.byCode(".themedMobile]:"), }); +// from toolbox +const HeaderBarIcon = findComponentByCodeLazy(".HEADER_BAR_BADGE_TOP:", '.iconBadge,"top"'); + const ArrowsLeftRightIcon = () => { return ; }; @@ -126,7 +130,7 @@ export default definePlugin({ }, renderSidebar: ErrorBoundary.wrap(() => { - const { guild, channel } = useStateFromStores([SidebarStore], () => SidebarStore.getFullState()); + const { guild, channel, /* width*/ } = useStateFromStores([SidebarStore], () => SidebarStore.getFullState()); const [width, setWidth] = useState(0); const [channelSidebar, guildSidebar] = useStateFromStores( @@ -162,7 +166,7 @@ export default definePlugin({ return (