Skip to content

Commit 91ba6d5

Browse files
yewreekaclaude
andcommitted
Only suppress profile onboarding when the adopted payload has a name
Adopting a profile-less identity (initiator never set up a profile) used to mark onboarding complete anyway, stranding the joiner as "Somebody" with the prompt permanently suppressed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0e90a5a commit 91ba6d5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Convos/Conversations List/ConversationsViewModel.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,16 @@ extension ConversationsViewModel {
850850
Log.warning("Pairing: failed to seed DBMyProfile after adoption: \(error)")
851851
}
852852
ProfileSettingsViewModel.shared.rebind(session: session)
853-
if seeded {
853+
// Only suppress profile onboarding when the adopted
854+
// payload actually carried a usable profile. A nil or
855+
// empty display name means the initiator never set one
856+
// up, and the joiner would otherwise be stranded as
857+
// "Somebody" with the prompt permanently suppressed.
858+
// (The asset identifier alone doesn't count: it's a
859+
// PhotoKit id from the initiator's library and can't
860+
// resolve here.)
861+
let adoptedUsableProfile = displayName?.isEmpty == false
862+
if seeded && adoptedUsableProfile {
854863
ConversationOnboardingCoordinator.markCompletedForPairedDevice()
855864
}
856865
},

0 commit comments

Comments
 (0)