diff options
author | Vitaly Takmazov | 2018-10-31 00:13:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-31 00:13:21 +0300 |
commit | 2d6630dda9f7c3df0da956c4644f94342d2bb747 (patch) | |
tree | cc312797eb058112dab712ed66adb26ab53d1431 /Juick/ViewControllers/NewPostViewController.m | |
parent | f7f877b0c5a928530d2422937402a983c402743f (diff) |
Refresh data on path changes
Diffstat (limited to 'Juick/ViewControllers/NewPostViewController.m')
-rw-r--r-- | Juick/ViewControllers/NewPostViewController.m | 4 |
1 files changed, 2 insertions, 2 deletions
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]; }]; } } |