From 9afcb7535839b7889a70a4d153449a2d0ae2dabe Mon Sep 17 00:00:00 2001 From: Cooper Date: Sat, 29 Jun 2024 22:04:40 -0500 Subject: [PATCH] fix: Add ShowConnections support for OpenMoreConnections --- src/plugins/showConnections/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/showConnections/index.tsx b/src/plugins/showConnections/index.tsx index d6909dc91..ef03b65b8 100644 --- a/src/plugins/showConnections/index.tsx +++ b/src/plugins/showConnections/index.tsx @@ -134,7 +134,7 @@ function ConnectionsComponent({ id, theme, simplified }: { id: string, theme: st function CompactConnectionComponent({ connection, theme }: { connection: Connection, theme: string; }) { const platform = platforms.get(useLegacyPlatformType(connection.type)); - const url = platform.getPlatformUserUrl?.(connection); + var url = platform.getPlatformUserUrl?.(connection); const img = ( ); + if (Vencord.Plugins.isPluginEnabled("OpenMoreConnections") && url == null) { + const OpenMoreConnections = Vencord.Plugins.plugins.OpenMoreConnections as any as typeof import("../openMoreConnections").default; + url = OpenMoreConnections.addConnectionLink(connection) as string; + } + const TooltipIcon = url ? LinkIcon : CopyIcon; return (