summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
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;
}