summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 20:48:27 +0300
committerGravatar Vitaly Takmazov2018-11-01 20:48:27 +0300
commit3344d1a6aeb701af869b8f947de1143ad8574d95 (patch)
tree13729b26ff386e0d4be9dc43e77284f390cddbea /Juick/ViewControllers
parent694f173a6ddbf916caabcbe2f146902b56116b84 (diff)
Fix replyTo
Diffstat (limited to 'Juick/ViewControllers')
-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];
}