summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/ThreadViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/ThreadViewController.m')
-rw-r--r--Juick/ViewControllers/ThreadViewController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m
index 8e64cb9..3b6854c 100644
--- a/Juick/ViewControllers/ThreadViewController.m
+++ b/Juick/ViewControllers/ThreadViewController.m
@@ -30,7 +30,7 @@
-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqual: @"replySegue"]) {
- Message *msg = ((MessageCell *)sender).message;
+ Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];
NewPostViewController *postVC = (NewPostViewController *)segue.destinationViewController;
[postVC setReplyTo:msg];
}