summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/ThreadViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 18:46:13 +0300
committerGravatar Vitaly Takmazov2018-11-01 18:46:13 +0300
commit9a0a039c5df78526bba67f6bef93e431cf94430a (patch)
tree7dc787956555ccfebf95ad38fb2baf81640b9a1d /Juick/ViewControllers/ThreadViewController.m
parentd5ffc51c8d1721e53d92dd919a36c72b43d05c45 (diff)
Link MessageCell and Message
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 3b6854c..8e64cb9 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 = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row];
+ Message *msg = ((MessageCell *)sender).message;
NewPostViewController *postVC = (NewPostViewController *)segue.destinationViewController;
[postVC setReplyTo:msg];
}