summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DialogsViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-20 01:50:48 +0300
committerGravatar Vitaly Takmazov2019-03-20 01:50:48 +0300
commit1f3e08f107064fa429c6aa2a26702f6e63a791f0 (patch)
tree2653f4dc08edd1c69050ef6d9c800f5e12246e3a /Juick/ViewControllers/DialogsViewController.m
parent7a1aa6e48b37f4244fd5887ea7a1d15dd6fb7768 (diff)
[AppDelegate shared]
Diffstat (limited to 'Juick/ViewControllers/DialogsViewController.m')
-rw-r--r--Juick/ViewControllers/DialogsViewController.m9
1 files changed, 4 insertions, 5 deletions
diff --git a/Juick/ViewControllers/DialogsViewController.m b/Juick/ViewControllers/DialogsViewController.m
index 05f0958..c4ace7f 100644
--- a/Juick/ViewControllers/DialogsViewController.m
+++ b/Juick/ViewControllers/DialogsViewController.m
@@ -66,11 +66,10 @@
-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"chatSegue"]) {
NSString *uname;
- AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
- if ([appDelegate.pushedUname length] > 0) {
- uname = [appDelegate.pushedUname copy];
- appDelegate.pushedThread = nil;
- appDelegate.pushedUname = nil;
+ if ([[AppDelegate shared].pushedUname length] > 0) {
+ uname = [[AppDelegate shared].pushedUname copy];
+ [AppDelegate shared].pushedThread = nil;
+ [AppDelegate shared].pushedUname = nil;
} else {
Chat *chat = [self.chats objectAtIndex:[self.tableView indexPathForSelectedRow].row];
uname = chat.uname;