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/ViewControllers/DiscussionsController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Juick/ViewControllers/DiscussionsController.m') diff --git a/Juick/ViewControllers/DiscussionsController.m b/Juick/ViewControllers/DiscussionsController.m index 1a759a1..607ac26 100644 --- a/Juick/ViewControllers/DiscussionsController.m +++ b/Juick/ViewControllers/DiscussionsController.m @@ -19,7 +19,7 @@ self.messagesDelegate = self; self.title = @"Discussions"; self.path = [APIClient discussionsUrl]; - [self setShouldScrollToBottomOnRefresh:NO]; + [self setShouldScrollToUnreadOnRefresh:NO]; [super viewDidLoad]; } @@ -28,7 +28,7 @@ if (lastMsg != nil) { NSDate *msgDate = [[APIClient sharedClient].dateFormatter dateFromString:lastMsg.timestamp]; self.params = [@{@"to" : [NSString stringWithFormat:@"%.0f", [msgDate timeIntervalSince1970] * 1000]} mutableCopy]; - [self setShouldScrollToBottomOnRefresh:NO]; + [self setShouldScrollToUnreadOnRefresh:NO]; [self refreshData]; } } -- cgit v1.2.3