Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 73e4fa5

Browse files
committed
Update CodePushTelemetryManager.m
1 parent 2043e29 commit 73e4fa5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ios/CodePush/CodePushTelemetryManager.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ + (NSDictionary *)getRetryStatusReport
5757

5858
+ (NSDictionary *)getRollbackReport:(NSDictionary *)lastFailedPackage
5959
{
60-
[self clearRetryStatusReport];
6160
return @{
6261
PackageKey: lastFailedPackage,
6362
StatusKey: DeploymentFailed
@@ -76,18 +75,17 @@ + (NSDictionary *)getUpdateReport:(NSDictionary *)currentPackage
7675
StatusKey: DeploymentSucceeded
7776
};
7877
} else if (![previousStatusReportIdentifier isEqualToString:currentPackageIdentifier]) {
78+
[self clearRetryStatusReport];
7979
if ([self isStatusReportIdentifierCodePushLabel:previousStatusReportIdentifier]) {
8080
NSString *previousDeploymentKey = [self getDeploymentKeyFromStatusReportIdentifier:previousStatusReportIdentifier];
8181
NSString *previousLabel = [self getVersionLabelFromStatusReportIdentifier:previousStatusReportIdentifier];
82-
[self clearRetryStatusReport];
8382
return @{
8483
PackageKey: currentPackage,
8584
StatusKey: DeploymentSucceeded,
8685
PreviousDeploymentKeyKey: previousDeploymentKey,
8786
PreviousLabelOrAppVersionKey: previousLabel
8887
};
8988
} else {
90-
[self clearRetryStatusReport];
9189
// Previous status report was with a binary app version.
9290
return @{
9391
PackageKey: currentPackage,
@@ -169,4 +167,4 @@ + (void)saveStatusReportedForIdentifier:(NSString *)appVersionOrPackageIdentifie
169167
[preferences synchronize];
170168
}
171169

172-
@end
170+
@end

0 commit comments

Comments
 (0)