summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 65220ff..b483a68 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -98,7 +98,7 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated";
UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0];
[discover popToRootViewControllerAnimated:NO];
MessagesViewController *msgVC = (MessagesViewController *)[discover.viewControllers objectAtIndex:0];
- [msgVC viewThreadForMessage:nil mid:self.pushedThread];
+ [msgVC viewThreadForMessage:nil mid:self.pushedThread scrollTo:self.pushedReplyId];
} else {
[main setSelectedIndex:2];
UINavigationController *dialogs = (UINavigationController *)[main.viewControllers objectAtIndex:2];
@@ -135,6 +135,7 @@ NSString * const UserUpdatedNotificationName = @"UserUpdated";
-(void) parseNotificationPayload:(NSDictionary *)userInfo {
self.pushedThread = userInfo[@"mid"];
self.pushedUname = userInfo[@"uname"];
+ self.pushedReplyId = userInfo[@"rid"];
}
+(AppDelegate *) shared {