소스 검색

Avoid double instantiation

Sebastián Katzer 7 년 전
부모
커밋
9de44b4ada
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ios/APPLocalNotification.m

+ 1 - 1
src/ios/APPLocalNotification.m

@@ -468,7 +468,7 @@ UNNotificationPresentationOptions const OptionAlert = UNNotificationPresentation
 {
     __weak APPLocalNotification* weakSelf  = self;
     UNNotificationRequest* request = notification.request;
-    NSString* event = [notification.request wasUpdated] ? @"update" : @"add";
+    NSString* event = [request wasUpdated] ? @"update" : @"add";
 
     [_center addNotificationCategory:notification.category];