From b8b49289ceb00255c689e4a373d6e116248b9c6b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 6 Dec 2017 22:59:06 +0300 Subject: fix crash --- Juick/AppDelegate.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index e9a5e6d..04a441c 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -31,12 +31,7 @@ [self registerForRemoteNotifications]; NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey]; if (userInfo != nil) { - NSString *payload = [userInfo objectForKey:@"mid"]; - if (payload != nil) { - NSNumberFormatter *f = [NSNumberFormatter new]; - f.numberStyle = NSNumberFormatterNoStyle; - self.pushedThread = [f numberFromString:payload]; - } + self.pushedThread = [userInfo objectForKey:@"mid"]; } return YES; } -- cgit v1.2.3