From 158a5fecc5f3bb56e8f4c0f7b152bff4d19549a4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 20 Mar 2021 02:40:45 +0300 Subject: Cleanup threads on notification --- Juick/AppDelegate.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Juick/AppDelegate.m') 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]; -- cgit v1.2.3