common: add PostActions#viewCommentsPage

This commit is contained in:
Harsh Shandilya 2021-10-25 00:48:53 +05:30
parent 53905c80de
commit 4573f82f50
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 9 additions and 0 deletions

View file

@ -78,6 +78,10 @@ fun LobstersApp(
navController.navigate(Destinations.Comments.format(postId))
}
override fun viewCommentsPage(commentsUrl: String) {
urlLauncher.launch(commentsUrl)
}
override fun toggleSave(post: SavedPost) {
viewModel.toggleSave(post)
}