Skip to content

Commit

Permalink
Fix profile claim after import (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhenadieVP authored Dec 13, 2024
1 parent c7471aa commit 08b354f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ extension TransportProfileClient: DependencyKey {
return Self(
importProfile: { profile, factorSourceIDs, skippedMainBdfs, containsP2PLinks in
do {
try await profileStore.importProfile(profile, skippedMainBdfs: skippedMainBdfs)
let profile = await profileStore.profile()
if profile.appPreferences.security.isCloudProfileSyncEnabled {
try? await cloudBackupClient.claimProfileOnICloud(profile)
}
try await profileStore.importProfile(profile, skippedMainBdfs: skippedMainBdfs)
userDefaults.setShowRelinkConnectorsAfterProfileRestore(containsP2PLinks)
} catch {
// Revert the saved mnemonic
Expand Down

0 comments on commit 08b354f

Please sign in to comment.