Skip to content

Commit

Permalink
Operational param fix
Browse files Browse the repository at this point in the history
Summary: Fix edge case related to operational parameters

Reviewed By: maxalbrightmeta

Differential Revision: D69437802

fbshipit-source-id: 944b1c4402908937d0f675f84a1ecfb062b554fb
  • Loading branch information
ryantobinmeta authored and facebook-github-bot committed Feb 11, 2025
1 parent 7228ea4 commit 0bfaf3b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ - (BOOL)isCompatibleWithTokenString:(NSString *)tokenString appID:(NSString *)ap
NSAssert(event != nil, @"event cannot be nil");
[event removeObjectForKey:FBSDK_APPEVENTSTATE_RECEIPTDATA_KEY];
NSMutableDictionary<FBSDKAppOperationalDataType, NSDictionary<NSString *, id> *> *operationalParameter = eventAndImplicitFlag[FBSDK_OPERATIONAL_PARAMETERS_KEY];
if (operationalParameter == nil) {
operationalParameter = [[NSMutableDictionary alloc] initWithDictionary:@{}];
}
[FBSDKTypeUtility array:events addObject:event];
[FBSDKTypeUtility array:operationalParameters addObject:operationalParameter];
}
Expand Down

0 comments on commit 0bfaf3b

Please sign in to comment.