Skip to content

Commit

Permalink
Update Source/ARTLocalDevice.m
Browse files Browse the repository at this point in the history
Co-authored-by: Lawrence Forooghian <[email protected]>
  • Loading branch information
maratal and lawrence-forooghian authored Jan 18, 2024
1 parent e9cab44 commit f5b7359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ARTLocalDevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ + (instancetype)deviceWithStorage:(id<ARTDeviceStorage>)storage logger:(nullable

NSString *clientId = [storage objectForKey:ARTClientIdKey];
if (clientId == nil && identityTokenDetails.clientId != nil) {
clientId = identityTokenDetails.clientId; // pickup some value that exists for the updated installations with already registered device
clientId = identityTokenDetails.clientId; // Older versions of the SDK did not persist clientId, so as a fallback when loading data persisted by these versions we use the clientId of the stored identity token
[storage setObject:clientId forKey:ARTClientIdKey];
}
device.clientId = clientId;
Expand Down

0 comments on commit f5b7359

Please sign in to comment.