summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-29 09:42:48 +0300
committerGravatar Vitaly Takmazov2019-03-29 09:42:48 +0300
commit29c5e93f4bd433bea7402a362fe1c812a43c3891 (patch)
treee93bd9e2287a2e878c2ad296c07d7e4d27fd2768 /Juick/AppDelegate.m
parent1ff58ba417592f9034acaaa74c7f3435dee7f0d3 (diff)
cleanupPushedData
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m7
1 files changed, 7 insertions, 0 deletions
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;
}