Skip to content

Commit e997bcb

Browse files
committed
Update the logic for exclusion list, if exclusion list is not empty and if it does not contain the event name, the event will send to Branch
1 parent 619d0f3 commit e997bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AdobeBranchExtension/Classes/AdobeBranchExtensionClass.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ - (BOOL)isValidEventForBranch:(NSString*)eventName {
260260
return YES;
261261
} else if ([AdobeBranchExtensionConfig instance].allowList.count != 0 && [[AdobeBranchExtensionConfig instance].allowList containsObject: eventName]) {
262262
return YES;
263-
} else if ([AdobeBranchExtensionConfig instance].exclusionList.count != 0 && [[AdobeBranchExtensionConfig instance].exclusionList containsObject: eventName]) {
264-
return NO;
263+
} else if ([AdobeBranchExtensionConfig instance].exclusionList.count != 0 && ![[AdobeBranchExtensionConfig instance].exclusionList containsObject: eventName]) {
264+
return YES;
265265
}
266266

267267
return NO;

0 commit comments

Comments
 (0)