Skip to content

Commit

Permalink
fix: Address firstInstall Edge Case
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker committed Nov 7, 2024
1 parent bea51d8 commit 90a9e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mParticle-Apple-SDK/Utils/MPStateMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ - (void)setInstallationType:(MPInstallationType)installationType {
_installationType = installationType;
[self didChangeValueForKey:@"installationType"];

self.firstSeenInstallation = installationType != MPInstallationTypeKnownUpgrade ? @YES : @NO;
self.firstSeenInstallation = (installationType != MPInstallationTypeKnownUpgrade && installationType != MPInstallationTypeKnownSameVersion) ? @YES : @NO;
}

#if TARGET_OS_IOS == 1
Expand Down

0 comments on commit 90a9e48

Please sign in to comment.