From a1534c23b84ad1b624aad2c05daa16ca97cb3ef4 Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 3 Oct 2017 09:56:47 +0100 Subject: [PATCH] [messaging] fix broken code from pr #443 --- ios/RNFirebase/messaging/RNFirebaseMessaging.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RNFirebase/messaging/RNFirebaseMessaging.m b/ios/RNFirebase/messaging/RNFirebaseMessaging.m index 8e9eb165..b262d724 100644 --- a/ios/RNFirebase/messaging/RNFirebaseMessaging.m +++ b/ios/RNFirebase/messaging/RNFirebaseMessaging.m @@ -4,6 +4,7 @@ #if __has_include() #import "RNFirebaseEvents.h" #import +#import #import #import @@ -258,7 +259,7 @@ RCT_EXPORT_METHOD(getToken:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseR } RCT_EXPORT_METHOD(deleteInstanceId:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { - [FIRInstanceID instanceID] deleteIDWithHandler:^(NSError * _Nullable error) { + [[FIRInstanceID instanceID] deleteIDWithHandler:^(NSError * _Nullable error) { if (!error) { resolve(nil); } else {