From e74d89e46fd2c22fcc9d57890eab119909cf96f7 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 28 Apr 2026 09:07:59 -0400 Subject: [PATCH] SidebarChat: fix crashing --- src/equicordplugins/sidebarChat/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/sidebarChat/index.tsx b/src/equicordplugins/sidebarChat/index.tsx index 618ad9c11..86f033ed9 100644 --- a/src/equicordplugins/sidebarChat/index.tsx +++ b/src/equicordplugins/sidebarChat/index.tsx @@ -321,18 +321,22 @@ export default definePlugin({ find: 'case"pendingFriends":', group: true, replacement: [ + { + match: /ChannelRenderer"\),/, + replace: "$&vc_SidebarChat=$self.renderSidebar()," + }, { match: /return(\(0,\i\.jsxs?\)\(\i,{}\))}/, - replace: "return [$1, $self.renderSidebar()]}" + replace: "return [$1,vc_SidebarChat]}" }, { match: /(?<=guild_products.{0,1600})(case \i\.\i.{0,50}return)(.+?\}\));(?=.+?params\.messageId)/g, - replace: "$1[$2, $self.renderSidebar()];", + replace: "$1[$2,vc_SidebarChat];", predicate: () => settings.store.patchCommunity, }, { match: /(case \i\.\i\.GAME_SERVERS:.{0,50}\.CHANNEL.{0,25}return)(.*?);/, - replace: "$1[$2, $self.renderSidebar()];", + replace: "$1[$2,vc_SidebarChat];", predicate: () => settings.store.patchCommunity, }, ],