summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscussionsController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/DiscussionsController.m')
-rw-r--r--Juick/ViewControllers/DiscussionsController.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/Juick/ViewControllers/DiscussionsController.m b/Juick/ViewControllers/DiscussionsController.m
index 607ac26..47ee7f2 100644
--- a/Juick/ViewControllers/DiscussionsController.m
+++ b/Juick/ViewControllers/DiscussionsController.m
@@ -7,7 +7,6 @@
//
#import "DiscussionsController.h"
-#import "APIClient.h"
@interface DiscussionsController ()
@@ -18,7 +17,7 @@
- (void)viewDidLoad {
self.messagesDelegate = self;
self.title = @"Discussions";
- self.path = [APIClient discussionsUrl];
+ self.path = [API discussionsUrl];
[self setShouldScrollToUnreadOnRefresh:NO];
[super viewDidLoad];
}
@@ -26,7 +25,7 @@
- (void)loadMore {
Message *lastMsg = [self.messages lastObject];
if (lastMsg != nil) {
- NSDate *msgDate = [[APIClient sharedClient].dateFormatter dateFromString:lastMsg.timestamp];
+ NSDate *msgDate = [[AppDelegate shared].sharedDateFormatter dateFromString:lastMsg.timestamp];
self.params = [@{@"to" : [NSString stringWithFormat:@"%.0f", [msgDate timeIntervalSince1970] * 1000]} mutableCopy];
[self setShouldScrollToUnreadOnRefresh:NO];
[self refreshData];