Skip to content

Commit

Permalink
always clear the cached link, if there's another link coming in it ta…
Browse files Browse the repository at this point in the history
…kes priority anyway
  • Loading branch information
echo-branch committed Mar 27, 2024
1 parent 6b1270b commit 7b2b5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BranchSDK/Branch.m
Original file line number Diff line number Diff line change
Expand Up @@ -1935,9 +1935,9 @@ - (void)initUserSessionAndCallCallback:(BOOL)callCallback sceneIdentifier:(NSStr
} else {
if (!urlString && self.cachedURLString) {
urlString = self.cachedURLString;
self.cachedURLString = nil;
[[BranchLogger shared] logDebug:[NSString stringWithFormat:@"Using cached link: %@", urlString]];

Check warning on line 1938 in Sources/BranchSDK/Branch.m

View check run for this annotation

Codecov / codecov/patch

Sources/BranchSDK/Branch.m#L1937-L1938

Added lines #L1937 - L1938 were not covered by tests
}
self.cachedURLString = nil;
}
}

Expand Down

0 comments on commit 7b2b5db

Please sign in to comment.