summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-03-20 02:40:45 +0300
committerGravatar Vitaly Takmazov2021-03-20 02:40:45 +0300
commit158a5fecc5f3bb56e8f4c0f7b152bff4d19549a4 (patch)
treedc9bb356011e2ec1de147a2ec8ac8180b3977702 /Juick
parent767a762f2c220527762f3c59fd0aeb12ccd474ec (diff)
Cleanup threads on notification
Diffstat (limited to 'Juick')
-rw-r--r--Juick/AppDelegate.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index aa25052..bfde8cf 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -99,6 +99,8 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated";
[self parseNotificationPayload:userInfo];
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
UITabBarController *main = (UITabBarController *)[self navigator];
+ UINavigationController *root = main.navigationController;
+ [root popToRootViewControllerAnimated:NO];
if ([self.pushedThread integerValue] > 0) {
[main setSelectedIndex:0];
MessagesViewController *discover = (MessagesViewController *)[main.viewControllers objectAtIndex:0];