diff options
author | Vitaly Takmazov | 2018-11-01 18:46:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-01 18:46:13 +0300 |
commit | 9a0a039c5df78526bba67f6bef93e431cf94430a (patch) | |
tree | 7dc787956555ccfebf95ad38fb2baf81640b9a1d /Juick/ViewControllers | |
parent | d5ffc51c8d1721e53d92dd919a36c72b43d05c45 (diff) |
Link MessageCell and Message
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r-- | Juick/ViewControllers/ThreadViewController.m | 2 |
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]; } |