Skip to content

Commit

Permalink
fix: set anonymousId in traits when second Identify event is made
Browse files Browse the repository at this point in the history
  • Loading branch information
SKannaniOS committed Aug 5, 2024
1 parent 8bf2900 commit 7a5d36a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Classes/RSContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ - (void) updateTraits:(RSTraits *)traits {
if(existingId!=nil && userId!=nil && ![existingId isEqual:userId])
{
self->_traits = [[traits dict] mutableCopy];
self->_traits[@"anonymousId"] = [self->preferenceManager getAnonymousId];
[self resetExternalIds];
return;
}
Expand Down

0 comments on commit 7a5d36a

Please sign in to comment.