Skip to content

Commit 62ce12b

Browse files
committed
Present ReviewReply screen when reply button is tapped
1 parent fa8347e commit 62ce12b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

WooCommerce/Classes/ViewRelated/Reviews/ReviewDetailsViewController.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,13 @@ private extension ReviewDetailsViewController {
384384
self.moderateReview(siteID: reviewSiteID, reviewID: reviewID, doneStatus: .spam, undoStatus: .unspam)
385385
}
386386

387-
commentCell.onReply = {
388-
// TODO: Open a text view to send a comment reply to the product review
387+
commentCell.onReply = { [weak self] in
388+
guard let self = self else {
389+
return
390+
}
391+
392+
let reviewReplyViewController = ReviewReplyHostingController(viewModel: ReviewReplyViewModel())
393+
self.present(reviewReplyViewController, animated: true)
389394
}
390395
}
391396
}

0 commit comments

Comments
 (0)