summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DialogsViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/DialogsViewController.m')
-rw-r--r--Juick/ViewControllers/DialogsViewController.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/Juick/ViewControllers/DialogsViewController.m b/Juick/ViewControllers/DialogsViewController.m
index 0b7f2ca..432cd53 100644
--- a/Juick/ViewControllers/DialogsViewController.m
+++ b/Juick/ViewControllers/DialogsViewController.m
@@ -9,8 +9,6 @@
#import "DialogsViewController.h"
#import "ChatViewController.h"
#import "ConversationCell.h"
-#import "APIClient.h"
-#import "AppDelegate.h"
@implementation DialogsViewController
- (void)viewDidLoad {
@@ -31,7 +29,7 @@
- (void) refreshData {
self.chats = [NSMutableArray array];
[self.tableView reloadData];
- [[APIClient sharedClient] fetchChats:^(NSArray *groups, NSError *err) {
+ [[AppDelegate shared].api fetchChats:^(NSArray *groups, NSError *err) {
if (err == nil) {
[self.chats addObjectsFromArray:groups];
NSMutableArray *indexPaths = [NSMutableArray new];