fix(desktop): derive default clone URL for relay-hosted repos (#2166)

Signed-off-by: Tyler <109685178+tlongwell-block@users.noreply.github.com>
Co-authored-by: npub1hwqy0rnujtl25dzmlhn8qwux4kr8sjhas3ugltx9j5dm5dwkp2dsqjhytw <bb80478e7c92feaa345bfde6703b86ad86784afd84788facc5951bba35d60a9b@pending-seed.communities.buzz.xyz>
This commit is contained in:
Tyler
2026-07-20 08:49:44 -04:00
committed by GitHub
parent 8024ce72ef
commit 21dbd32645
4 changed files with 141 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import {
projectsQueryKey,
} from "@/features/projects/hooks";
import { relayClient } from "@/shared/api/relayClient";
import { getCachedRelayOrigin } from "@/shared/lib/mediaUrl";
import { signRelayEvent } from "@/shared/api/tauri";
import { getIdentity } from "@/shared/api/tauriIdentity";
import { KIND_REPO_ANNOUNCEMENT } from "@/shared/constants/kinds";
@@ -77,7 +78,7 @@ async function createProject(input: CreateProjectInput): Promise<Project> {
"Failed to create project.",
);
return eventToProject(event);
return eventToProject(event, getCachedRelayOrigin());
}
/** Mutation that creates a project and inserts it into the projects cache. */