Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small change for (#40) #44

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ boolean bootupIfReady(final SharedStateCallback callback) {

// Reuse the ECID from Identity Direct (if registered) or generate new ECID on first launch
if (identityProperties.getECID() == null) {
final Map<String, Object> identityDirectSharedState = callback.getSharedState(
IdentityConstants.SharedState.IdentityDirect.NAME, null);

// Attempt to get ECID from direct Identity persistence to migrate an existing ECID
final ECID directIdentityEcid = IdentityStorageService.loadEcidFromDirectIdentityPersistence();
Expand All @@ -89,6 +87,8 @@ boolean bootupIfReady(final SharedStateCallback callback) {

// If direct Identity has no persisted ECID, check if direct Identity is registered with the SDK
else if (isIdentityDirectRegistered(callback)) {
final Map<String, Object> identityDirectSharedState = callback.getSharedState(
IdentityConstants.SharedState.IdentityDirect.NAME, null);

// If the direct Identity extension is registered, attempt to get its shared state
if (identityDirectSharedState != null) { // identity direct shared state is set
Expand Down