Skip to content

Commit

Permalink
style(messaging, lint): yarn lint:ios:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Aug 26, 2022
1 parent 09726cd commit 2d89f5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ - (NSDictionary *)constantsToExport {
authorizedStatus = @2;
}
}

if (@available(iOS 14.0, macCatalyst 14.0, *)) {
if (settings.authorizationStatus == UNAuthorizationStatusEphemeral) {
authorizedStatus = @3;

if (@available(iOS 14.0, macCatalyst 14.0, *)) {
if (settings.authorizationStatus == UNAuthorizationStatusEphemeral) {
authorizedStatus = @3;
}
}
}

resolve(authorizedStatus);
}];
Expand Down

0 comments on commit 2d89f5b

Please sign in to comment.