mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
fix: Add ShowConnections support for OpenMoreConnections
This commit is contained in:
parent
bfea1edf63
commit
9afcb75358
1 changed files with 6 additions and 1 deletions
|
@ -134,7 +134,7 @@ function ConnectionsComponent({ id, theme, simplified }: { id: string, theme: st
|
||||||
|
|
||||||
function CompactConnectionComponent({ connection, theme }: { connection: Connection, theme: string; }) {
|
function CompactConnectionComponent({ connection, theme }: { connection: Connection, theme: string; }) {
|
||||||
const platform = platforms.get(useLegacyPlatformType(connection.type));
|
const platform = platforms.get(useLegacyPlatformType(connection.type));
|
||||||
const url = platform.getPlatformUserUrl?.(connection);
|
var url = platform.getPlatformUserUrl?.(connection);
|
||||||
|
|
||||||
const img = (
|
const img = (
|
||||||
<img
|
<img
|
||||||
|
@ -147,6 +147,11 @@ function CompactConnectionComponent({ connection, theme }: { connection: Connect
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
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;
|
const TooltipIcon = url ? LinkIcon : CopyIcon;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue