Commit 9de44b4a by Sebastián Katzer

Avoid double instantiation

parent 294c7a07
...@@ -468,7 +468,7 @@ UNNotificationPresentationOptions const OptionAlert = UNNotificationPresentation ...@@ -468,7 +468,7 @@ UNNotificationPresentationOptions const OptionAlert = UNNotificationPresentation
{ {
__weak APPLocalNotification* weakSelf = self; __weak APPLocalNotification* weakSelf = self;
UNNotificationRequest* request = notification.request; UNNotificationRequest* request = notification.request;
NSString* event = [notification.request wasUpdated] ? @"update" : @"add"; NSString* event = [request wasUpdated] ? @"update" : @"add";
[_center addNotificationCategory:notification.category]; [_center addNotificationCategory:notification.category];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment