Skip to content

Commit

Permalink
fixed string comparison when deciding whether to sync deleted attribu…
Browse files Browse the repository at this point in the history
…tes (#385)
  • Loading branch information
aboedo committed Nov 9, 2020
1 parent 0c7bdb8 commit 5b2b90d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ - (void)handleAttributesSyncedForAppUserID:(NSString *)syncingAppUserID
error:(NSError *)error {
if (error == nil) {
RCLog(@"Subscriber attributes synced successfully for appUserID: %@", syncingAppUserID);
if (syncingAppUserID != currentAppUserID) {
if (![syncingAppUserID isEqualToString:currentAppUserID]) {
[self.deviceCache deleteAttributesIfSyncedForAppUserID:syncingAppUserID];
}
} else {
Expand Down

0 comments on commit 5b2b90d

Please sign in to comment.