[invites] Exclude pure links from getInitialInvitation

This commit is contained in:
Chris Bianca
2018-03-23 11:46:48 +00:00
parent e430a4f132
commit 8918139fd0

View File

@@ -95,7 +95,7 @@ RCT_EXPORT_METHOD(getInitialInvitation:(RCTPromiseResolveBlock)resolve rejecter:
if (error) {
NSLog(@"Failed to handle universal link: %@", [error localizedDescription]);
reject(@"invites/initial-invitation-error", @"Failed to handle invitation", error);
} else if (receivedInvite) {
} else if (receivedInvite && receivedInvite.inviteId) {
resolve(@{
@"deepLink": receivedInvite.deepLink,
@"invitationId": receivedInvite.inviteId,
@@ -183,3 +183,4 @@ RCT_EXPORT_METHOD(sendInvitation:(NSDictionary *) invitation
@implementation RNFirebaseInvites
@end
#endif