summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/MessagesViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-10 11:52:54 +0300
committerGravatar Vitaly Takmazov2017-12-10 11:52:54 +0300
commit38d16e9d26b4f8653063ef2c572ccfc803ab165b (patch)
treec0e3bc1bb760f38150850f5e451bea77fa5a8373 /Juick/ViewControllers/MessagesViewController.m
parent8a9a7fb25405c3662ae9b3b58263e9088baa7082 (diff)
fix layout
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r--Juick/ViewControllers/MessagesViewController.m20
1 files changed, 1 insertions, 19 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m
index 823d838..8e4835b 100644
--- a/Juick/ViewControllers/MessagesViewController.m
+++ b/Juick/ViewControllers/MessagesViewController.m
@@ -76,25 +76,7 @@
self.tableView.estimatedRowHeight = 500.0f;
self.messages = [NSMutableArray array];
self.refreshControl = [UIRefreshControl new];
- [self.refreshControl addTarget:self action:@selector(refreshData) forControlEvents:UIControlEventValueChanged];
- if ([User isAuthenticated]) {
- [User checkIsValid:^(BOOL success) {
- if (success) {
- if ([self.path length] == 0) {
- self.path = [APIClient feedUrl];
- }
- [self refreshData:NO];
- } else {
- [User throwUnableToLogin:self];
- }
- }];
-
- } else {
- if ([self.path length] == 0) {
- self.path = [APIClient messagesUrl];
- }
- [self refreshData:NO];
- }
+ [self.refreshControl addTarget:self action:@selector(refreshData) forControlEvents:UIControlEventValueChanged];
}
- (void) composePressed {