Skip to content

Commit

Permalink
fix: set anonymousId in traits when second Identify event is made (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKannaniOS authored Aug 7, 2024
1 parent 8bf2900 commit b52251b
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 b52251b

Please sign in to comment.