From 2d6630dda9f7c3df0da956c4644f94342d2bb747 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Oct 2018 00:13:21 +0300 Subject: Refresh data on path changes --- Juick/ViewControllers/NewPostViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Juick/ViewControllers/NewPostViewController.m') diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index 3e2d17e..95672e8 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -46,13 +46,13 @@ [[APIClient sharedClient] postMessage:self.textView.text result:^(Message *msg, NSError *err) { self.navigationController.navigationItem.rightBarButtonItem.enabled = YES; [self.navigationController popViewControllerAnimated:YES]; - [(MessagesViewController *)self.navigationController.visibleViewController refreshData:YES]; + [(MessagesViewController *)self.navigationController.visibleViewController setShouldScrollToBottomOnRefresh:YES]; }]; } else { [[APIClient sharedClient] postReplyToThread:_replyTo.mid inReplyTo:_replyTo.rid text:self.textView.text result:^(Message *msg, NSError *err) { self.navigationController.navigationItem.rightBarButtonItem.enabled = YES; [self.navigationController popViewControllerAnimated:YES]; - [(MessagesViewController *)self.navigationController.visibleViewController refreshData:YES]; + [(MessagesViewController *)self.navigationController.visibleViewController setShouldScrollToBottomOnRefresh:YES]; }]; } } -- cgit v1.2.3