summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-19 22:57:13 +0300
committerGravatar Vitaly Takmazov2018-07-19 22:57:13 +0300
commit3b28ab6dc9890740bf6e8870ad17fa412b5246a0 (patch)
treef8f9037a4617d7d4b706b7ec08cb1b726073ef38 /Juick/AppDelegate.m
parentcaee9b0413b5b02ec4e074b72776a0cc449aec7a (diff)
Trying to clear back stack after push notification
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 9bbf567..a4932b6 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -88,6 +88,7 @@
if ([self.pushedThread integerValue] > 0) {
[main setSelectedIndex:0];
UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0];
+ [discover popToRootViewControllerAnimated:NO];
[[discover.viewControllers objectAtIndex:0] performSegueWithIdentifier:@"threadViewSegue" sender:discover];
} else {
[main setSelectedIndex:1];