summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-25 16:07:22 +0300
committerGravatar Vitaly Takmazov2019-03-25 16:07:22 +0300
commit72fbd1b82041082dfb25cfdf0f28db65fd1c878a (patch)
treeda00ae2f01af038da435342ee7282fe8575c7e4d /Juick/AppDelegate.m
parent163a79e2aa4df23638686ca0608cdbaf6e6dad6f (diff)
Scroll to reply from notification
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 {