Skip to content

Commit

Permalink
fix: update Alias API by having previousId filed in the middle
Browse files Browse the repository at this point in the history
  • Loading branch information
1abhishekpandey committed Dec 9, 2024
1 parent 0e82ed6 commit f8b1e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/Classes/Headers/Public/RSClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typedef void (^Callback)(NSObject *_Nullable);
- (void) group:(NSString *)groupId traits:(NSDictionary<NSString*, id>*)traits;
- (void) group:(NSString *)groupId;

- (void) alias:(NSString *)newId options:(RSOption * _Nullable) options previousId:(NSString * _Nullable)previousId;
- (void) alias:(NSString *)newId options previousId:(NSString * _Nullable)previousId options:(RSOption * _Nullable);
- (void) alias:(NSString *)newId options:(RSOption * _Nullable) options;
- (void) alias:(NSString *)newId;

Expand Down
6 changes: 3 additions & 3 deletions Sources/Classes/RSClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ - (void)alias:(NSString *)newId {
[self reportDiscardedEvent];
return;
}
[self alias:newId options:nil previousId:nil];
[self alias:newId previousId:nil options:nil];
}

- (void) alias:(NSString *)newId options:(RSOption *) options {
[self alias:newId options:options previousId:nil];
[self alias:newId previousId:nil options:options];
}

- (void) alias:(NSString *)newId options:(RSOption *) options previousId:(NSString *)previousId {
- (void) alias:(NSString *)newId previousId:(NSString *)previousId options:(RSOption *) options {
if ([RSClient getOptStatus]) {
[self reportDiscardedEvent];
return;
Expand Down

0 comments on commit f8b1e87

Please sign in to comment.