diff options
author | Vitaly Takmazov | 2018-04-08 14:31:34 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-08 16:28:02 +0300 |
commit | a18e9ee9a3dc8b7f8ed3074893eac788bc234903 (patch) | |
tree | d3390bbf778f243bd8ef15f19d22005a8356e375 /Juick/AppDelegate.m | |
parent | 2a4770c84aaf2be9c58622f108007facef670fd3 (diff) |
fix PM push
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r-- | Juick/AppDelegate.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 7cfd052..3e92687 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -86,13 +86,15 @@ NSLog(@"User Info : %@", userInfo); [self parseNotificationPayload:userInfo]; UITabBarController *main = (UITabBarController *)self.window.rootViewController; - if (self.pushedThread > 0) { + if ([self.pushedThread integerValue] > 0) { [main setSelectedIndex:0]; UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0]; [[discover.viewControllers objectAtIndex:0] performSegueWithIdentifier:@"threadViewSegue" sender:discover]; } else { + NSLog(@"Pushing to PM"); [main setSelectedIndex:1]; UINavigationController *dialogs = (UINavigationController *)[main.viewControllers objectAtIndex:1]; + NSLog(@"perform PM segue"); [[dialogs.viewControllers objectAtIndex:0] performSegueWithIdentifier:@"chatSegue" sender:dialogs]; } completionHandler(); |