summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-16 23:04:01 +0300
committerGravatar Vitaly Takmazov2018-10-16 23:04:01 +0300
commit842990ac65de6fd61e027c8a9cff48d30aaf3a60 (patch)
tree2150701f1c32ec69b9d254a4c96dedb0573737d5 /Juick/ViewControllers/DiscoverViewController.m
parenta7cb4ab3f629b423099afad204c7ae1bf8df9677 (diff)
Content loading
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index 67036c6..b09e1df 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -56,9 +56,13 @@
[self performSegueWithIdentifier:@"threadViewSegue" sender:cell];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- MessageCell *cell = (MessageCell *)[super tableView:tableView cellForRowAtIndexPath:indexPath];
- cell.delegate = self;
- return cell;
+ if (!self.dataLoading) {
+ MessageCell *cell = (MessageCell *)[super tableView:tableView cellForRowAtIndexPath:indexPath];
+ cell.delegate = self;
+ return cell;
+ } else {
+ return [super tableView:tableView cellForRowAtIndexPath:indexPath];
+ }
}
-(void)avatarClicked:(NSString *)uname {