Skip to content

Commit d0c9ae1

Browse files
authored
fix: build error on local notification (#228)
1 parent 4a8996d commit d0c9ae1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ios/RNCPushNotificationIOS.m

+1-5
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
611611
}
612612
}
613613

614+
614615
RCT_EXPORT_METHOD(getInitialNotification:(RCTPromiseResolveBlock)resolve
615616
reject:(__unused RCTPromiseRejectBlock)reject)
616617
{
@@ -625,11 +626,6 @@ - (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification
625626
initialNotification[@"remote"] = @YES;
626627
resolve(initialNotification);
627628
} else if (initialLocalNotification) {
628-
NSMutableDictionary *userInfo = [content.userInfo mutableCopy];
629-
NSMutableDictionary *localInfo = [initialLocalNotification.userInfo mutableCopy];
630-
localInfo[@"userInteraction"] = [NSNumber numberWithInt:1];
631-
initialLocalNotification.userInfo = localInfo;
632-
initialLocalNotification[@"userInteraction"] = [NSNumber numberWithInt:1];
633629
resolve(RCTFormatLocalNotification(initialLocalNotification));
634630
} else {
635631
resolve((id)kCFNull);

0 commit comments

Comments
 (0)