Skip to content

Commit

Permalink
fix: don't delete old profile file for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaz committed Oct 4, 2024
1 parent c572125 commit 685f108
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class IdentityStorageMigration(
if (identity.deviceId != null) {
destination.saveDeviceId(identity.deviceId)
}
source.delete()
// Since we are not doing a major version upgrade, keep the old profile file around
// just in case someone decides to rollback back to the older version of the SDK.
// source.delete()
} catch (e: Exception) {
logger.error("Unable to migrate file identity storage: ${e.message}")
}
Expand Down

0 comments on commit 685f108

Please sign in to comment.