From e430a4f1327023a30b4ca0112470032e37718ea4 Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Fri, 23 Mar 2018 11:38:59 +0000 Subject: [PATCH] [invites] Tweaks --- .../java/io/invertase/firebase/links/RNFirebaseLinks.java | 2 +- lib/modules/invites/Invitation.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java b/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java index 7734513f..746dcf9b 100644 --- a/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java +++ b/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java @@ -175,7 +175,7 @@ public class RNFirebaseLinks extends ReactContextBaseJavaModule implements Activ // Looks at the internals of the link data to detect whether it's an invitation or not private boolean isInvitation(PendingDynamicLinkData pendingDynamicLinkData) { - return pendingDynamicLinkData.zzcbj().getString("com.google.firebase.appinvite.fdl.extension.InvitationId") != null; + return FirebaseAppInvite.getInvitation(pendingDynamicLinkData) != null; } private DynamicLink.Builder getDynamicLinkBuilderFromMap(final Map metaData) { diff --git a/lib/modules/invites/Invitation.js b/lib/modules/invites/Invitation.js index 66a82f61..04c0b0aa 100644 --- a/lib/modules/invites/Invitation.js +++ b/lib/modules/invites/Invitation.js @@ -24,6 +24,10 @@ export default class Invitation { this._title = title; } + get android(): AndroidInvitation { + return this._android; + } + /** * * @param androidClientId