diff options
author | Vitaly Takmazov | 2019-10-01 17:29:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-10-01 22:14:59 +0300 |
commit | dbab6ab54c40a016f75e75a4143576c3fa41c3e0 (patch) | |
tree | 6fd5e68ec76c249fcaa07219c53ccab2f4c98fd5 /Juick/ViewControllers/ThreadViewController.m | |
parent | aeb513ed5c165e355c9c378efde7445f597d0380 (diff) |
Drop AFNetworking and SSKeychain
Diffstat (limited to 'Juick/ViewControllers/ThreadViewController.m')
-rw-r--r-- | Juick/ViewControllers/ThreadViewController.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m index 3ea64f7..af56bc3 100644 --- a/Juick/ViewControllers/ThreadViewController.m +++ b/Juick/ViewControllers/ThreadViewController.m @@ -19,6 +19,7 @@ [self setPath:[APIClient threadUrl]]; [super viewDidLoad]; self.messagesDelegate = self; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(replyPosted:) name:ReplyPostedNotificationName object:nil]; } -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { @@ -41,4 +42,9 @@ [self refreshData]; } +- (void)replyPosted:(NSNotification *) notification { + [self setShouldScrollToUnreadOnRefresh:YES]; + [self refreshData]; +} + @end |