Skip to content

Commit 1306115

Browse files
committed
Fix accountForFacebook stuff
1 parent 85ff637 commit 1306115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,14 @@ - (void)initSessionWithLaunchOptions:(NSDictionary *)options isReferrable:(BOOL)
341341
}
342342
}
343343
else if ([options objectForKey:UIApplicationLaunchOptionsUserActivityDictionaryKey]) {
344-
self.preferenceHelper.shouldWaitForInit = YES;
345344
if (self.accountForFacebookSDK) {
346345
id activity = [[options objectForKey:UIApplicationLaunchOptionsUserActivityDictionaryKey] objectForKey:@"UIApplicationLaunchOptionsUserActivityKey"];
347346
if (activity && [activity isKindOfClass:[NSUserActivity class]]) {
348347
[self continueUserActivity:activity];
348+
return;
349349
}
350350
}
351+
self.preferenceHelper.shouldWaitForInit = YES;
351352
}
352353
}
353354
else if (![options objectForKey:UIApplicationLaunchOptionsURLKey]) {

0 commit comments

Comments
 (0)