diff options
author | Vitaly Takmazov | 2017-12-06 22:59:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-12-06 22:59:06 +0300 |
commit | b8b49289ceb00255c689e4a373d6e116248b9c6b (patch) | |
tree | f9f465e9226c4d607ee7347a51a8a78aaadbd4b9 | |
parent | b49ac0943a47fcecb71b88dc7f7b64b80d5cf6ff (diff) |
fix crash
-rw-r--r-- | Juick/AppDelegate.m | 7 |
1 files changed, 1 insertions, 6 deletions
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; } |