From dbab6ab54c40a016f75e75a4143576c3fa41c3e0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Oct 2019 17:29:46 +0300 Subject: Drop AFNetworking and SSKeychain --- Juick/ViewControllers/ThreadViewController.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Juick/ViewControllers/ThreadViewController.m') 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 -- cgit v1.2.3