From 72fbd1b82041082dfb25cfdf0f28db65fd1c878a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Mar 2019 16:07:22 +0300 Subject: Scroll to reply from notification --- Juick/AppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Juick/AppDelegate.m') 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 { -- cgit v1.2.3