findfamily: make temporary-link share URL PQC-only to match Android
- Commit
1c6935c1bc91305a95aa7c080c5672c561775838- Author
- Vayun Mathur <[email protected]>
- When
- 2026-08-10 17:16 UTC (3 months ago)
- Parents
26f597b
Diff
FindFamilyiOS/UI/Cards.swift
diff --git a/FindFamilyiOS/UI/Cards.swift b/FindFamilyiOS/UI/Cards.swiftindex 00a0505d57..aa69747b34 100644--- a/FindFamilyiOS/UI/Cards.swift+++ b/FindFamilyiOS/UI/Cards.swift@@ -198,15 +198,10 @@ struct TemporaryLinkCard: View { } Spacer() Button {- // PQC routing: include PQC private bundle fragment when available.- // Fragment never hits server; classic #key= still present for backward compat.- let base = "https://findfamily.cc/view/\(UInt64(bitPattern: link.id))#key=\(link.key)"- let url = if let pqcPriv = link.pqcKey {- "\(base)&pqc_key=\(pqcPriv)"- } else {- base- }- Platform.copy(url)+ // Links are post-quantum only, matching Android: the fragment carries just+ // the PQC private bundle — no classic `#key=`. The fragment never hits the server.+ guard let pqcKey = link.pqcKey else { return }+ Platform.copy("https://findfamily.cc/view/\(UInt64(bitPattern: link.id))#pqc_key=\(pqcKey)") } label: { Image(systemName: "doc.on.doc") } Button(role: .destructive) { Database.shared.deleteTemporaryLink(link)