summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/FeedViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-03-21 20:17:42 +0300
committerGravatar Vitaly Takmazov2019-03-21 20:17:42 +0300
commit6b40f06a691e1264f6e35b6a5616198e6977787d (patch)
treed7aa6427861523a8447d52a8b45d57a605a1a714 /Juick/ViewControllers/FeedViewController.m
parente6fec9707f61b5d521bf1a2e6a85998f2466bdfa (diff)
Named colours
Diffstat (limited to 'Juick/ViewControllers/FeedViewController.m')
-rw-r--r--Juick/ViewControllers/FeedViewController.m38
1 files changed, 2 insertions, 36 deletions
diff --git a/Juick/ViewControllers/FeedViewController.m b/Juick/ViewControllers/FeedViewController.m
index 67d80e1..d7b51a8 100644
--- a/Juick/ViewControllers/FeedViewController.m
+++ b/Juick/ViewControllers/FeedViewController.m
@@ -12,7 +12,6 @@
#import "MessageCell.h"
#import "APIClient.h"
#import "AppDelegate.h"
-#import "ColorScheme.h"
@interface FeedViewController ()
@@ -48,11 +47,6 @@
[super viewDidLoad];
}
--(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- NSString * cellIdentifier = @"messageCell";
- MessageCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];
- [self performSegueWithIdentifier:@"threadViewSegue" sender:cell];
-}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (!self.dataLoading) {
MessageCell *cell = (MessageCell *)[super tableView:tableView cellForRowAtIndexPath:indexPath];
@@ -67,35 +61,7 @@
self.selectedUser = uname;
[self performSegueWithIdentifier:@"profileSegue" sender:self];
}
-
--(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- if ([segue.identifier isEqual: @"threadViewSegue"]) {
- NSNumber *mid;
- BOOL scrollToEnd = NO;
- if ([AppDelegate shared].pushedThread != nil) {
- mid = [[AppDelegate shared].pushedThread copy];
- [AppDelegate shared].pushedThread = nil;
- [AppDelegate shared].pushedUname = nil;
- scrollToEnd = YES;
- } else {
- Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];
- mid = msg.mid;
- }
- if ([mid integerValue] > 0) {
- ThreadViewController *threadVC = (ThreadViewController *)segue.destinationViewController;
- [threadVC setPath:[APIClient threadUrl]];
- [threadVC setParams:@{@"mid": mid }];
- [threadVC setShouldScrollToBottomOnRefresh:scrollToEnd];
- }
- }
- if ([segue.identifier isEqual: @"profileSegue"]) {
- BlogViewController *blogVC = (BlogViewController *)segue.destinationViewController;
- [blogVC setUname:self.selectedUser];
- [blogVC setTitle:self.selectedUser];
- blogVC.path = [NSString stringWithFormat:@"/messages?uname=%@", self.selectedUser];
- [blogVC setShouldScrollToBottomOnRefresh:NO];
- }
-}
+/*
- (IBAction)filterAction:(id)sender {
if (![[APIClient sharedClient] isAuthenticated]) {
[self.navigationController performSegueWithIdentifier:@"loginSegue" sender:self.navigationController];
@@ -135,7 +101,7 @@
popover.permittedArrowDirections = UIPopoverArrowDirectionUp;
}
[self presentViewController:filterAlert animated:YES completion:nil];
-}
+}*/
-(void) loadMore {
Message *lastMsg = [self.messages lastObject];