mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 22:30:21 +00:00
fix(iOS): preserve legacy data when Keychain write fails during migration
(cherry picked from commit ea47df92fa)
This commit is contained in:
@@ -46,7 +46,7 @@ public enum GatewayTLSStore {
|
||||
!existing.isEmpty
|
||||
else { return }
|
||||
if self.keychainLoad(account: stableID) == nil {
|
||||
self.keychainSave(existing, account: stableID)
|
||||
guard self.keychainSave(existing, account: stableID) else { return }
|
||||
}
|
||||
defaults.removeObject(forKey: legacyKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user