summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-08 14:31:34 +0300
committerGravatar Vitaly Takmazov2018-04-08 16:28:02 +0300
commita18e9ee9a3dc8b7f8ed3074893eac788bc234903 (patch)
treed3390bbf778f243bd8ef15f19d22005a8356e375 /Juick/ViewControllers/DiscoverViewController.m
parent2a4770c84aaf2be9c58622f108007facef670fd3 (diff)
fix PM push
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index afbf32e..110d8c7 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -14,12 +14,12 @@
@interface DiscoverViewController ()
+@property(nonatomic, strong) AppDelegate *appDelegate;
+
@end
@implementation DiscoverViewController
-AppDelegate *appDelegate;
-
-(void) viewDidLoad {
[super viewDidLoad];
self.messagesDelegate = self;
@@ -45,7 +45,7 @@ AppDelegate *appDelegate;
}
[self refreshData:NO];
}
- appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
+ self.appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
}
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
@@ -58,10 +58,10 @@ AppDelegate *appDelegate;
if ([segue.identifier isEqual: @"threadViewSegue"]) {
NSNumber *mid;
BOOL scrollToEnd = NO;
- if (appDelegate.pushedThread != nil) {
- mid = [appDelegate.pushedThread copy];
- appDelegate.pushedThread = nil;
- appDelegate.pushedUname = nil;
+ if (self.appDelegate.pushedThread != nil) {
+ mid = [self.appDelegate.pushedThread copy];
+ self.appDelegate.pushedThread = nil;
+ self.appDelegate.pushedUname = nil;
scrollToEnd = YES;
} else {
Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];