From f5b7359e604c0b703c41c0d6800d864ad33f7b5e Mon Sep 17 00:00:00 2001 From: Marat Al Date: Thu, 18 Jan 2024 17:14:01 +0100 Subject: [PATCH] Update Source/ARTLocalDevice.m Co-authored-by: Lawrence Forooghian <53756884+lawrence-forooghian@users.noreply.github.com> --- Source/ARTLocalDevice.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ARTLocalDevice.m b/Source/ARTLocalDevice.m index 4ad41cf2f..5a73a80ec 100644 --- a/Source/ARTLocalDevice.m +++ b/Source/ARTLocalDevice.m @@ -97,7 +97,7 @@ + (instancetype)deviceWithStorage:(id)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;