From 29c5e93f4bd433bea7402a362fe1c812a43c3891 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 29 Mar 2019 09:42:48 +0300 Subject: cleanupPushedData --- Juick/AppDelegate.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Juick/AppDelegate.m') diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index b483a68..9501316 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -99,6 +99,7 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated"; [discover popToRootViewControllerAnimated:NO]; MessagesViewController *msgVC = (MessagesViewController *)[discover.viewControllers objectAtIndex:0]; [msgVC viewThreadForMessage:nil mid:self.pushedThread scrollTo:self.pushedReplyId]; + [self cleanupPushedData]; } else { [main setSelectedIndex:2]; UINavigationController *dialogs = (UINavigationController *)[main.viewControllers objectAtIndex:2]; @@ -138,6 +139,12 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated"; self.pushedReplyId = userInfo[@"rid"]; } +-(void) cleanupPushedData { + self.pushedUname = nil; + self.pushedThread = nil; + self.pushedReplyId = nil; +} + +(AppDelegate *) shared { return (AppDelegate *)[UIApplication sharedApplication].delegate; } -- cgit v1.2.3