summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/MessagesViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r--Juick/ViewControllers/MessagesViewController.m13
1 files changed, 1 insertions, 12 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m
index ad28484..5dfbf8f 100644
--- a/Juick/ViewControllers/MessagesViewController.m
+++ b/Juick/ViewControllers/MessagesViewController.m
@@ -161,18 +161,7 @@ NSString* const messageCellIdentifier = @"messageCell";
}
-(void) viewThreadForMessage:(Message *)msg mid:(NSNumber *)mid scrollTo:(NSNumber *)rid {
- ThreadViewController *threadVC = [AppDelegate threadViewController];
- if (msg) {
- [threadVC setMessages:[@[msg] mutableCopy]];
- }
- [threadVC setParams:@{@"mid": mid }];
- if (rid) {
- [threadVC setFirstUnread:rid];
- [threadVC setShouldScrollToUnreadOnRefresh:YES];
- } else {
- [threadVC setShouldScrollToUnreadOnRefresh:NO];
- }
- [self.navigationController pushViewController:threadVC animated:YES];
+ [[AppDelegate shared] presentThread:self];
}
-(void) newMessage:(NSNotification *)obj {