summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-09 00:08:02 +0300
committerGravatar Vitaly Takmazov2017-12-09 00:08:02 +0300
commite2ac87809468e9487389e5d22ab9766996898478 (patch)
tree280fd32131524fb67e835d444cecc709ff14105d /Juick/ViewControllers
parent229137d8c7f044dbda90e0d6fdf5f46666b0770d (diff)
some drunk fixes
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index 3822643..4a36cfe 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -23,7 +23,9 @@ AppDelegate *appDelegate;
-(void) viewDidLoad {
[super viewDidLoad];
appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
- [self performSegueWithIdentifier:@"threadViewSegue" sender:self];
+ if (appDelegate.pushedThread != nil) {
+ [self performSegueWithIdentifier:@"threadViewSegue" sender:self];
+ }
}
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
@@ -37,6 +39,7 @@ AppDelegate *appDelegate;
NSNumber *mid;
if (appDelegate.pushedThread != nil) {
mid = appDelegate.pushedThread;
+ appDelegate.pushedThread = nil;
} else {
Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];
mid = msg.mid;