summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-08 11:25:34 +0300
committerGravatar Vitaly Takmazov2018-04-08 11:25:34 +0300
commited209b42205a9722be6b52fae2765ae02f244dde (patch)
tree4737855ce66422cf23ff7c8ad6d5196f5821340b /Juick/AppDelegate.m
parent7ef12b194570ab105a6441f58b6b2e1ec27027e1 (diff)
another attempt to fix push
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index cb3b19e..b376052 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -85,6 +85,10 @@
NSDictionary *userInfo = response.notification.request.content.userInfo;
NSLog(@"User Info : %@", userInfo);
[self parseNotificationPayload:userInfo];
+ UITabBarController *main = (UITabBarController *)self.window.rootViewController;
+ [main setSelectedIndex:0];
+ UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0];
+ [discover performSegueWithIdentifier:@"threadViewSegue" sender:discover];
completionHandler();
}