Fix not filter all comments
This commit is contained in:
1 parent
92be6e9340
commit
5b450ff18f
1 file changed
+1
-1
@@ -195,7 +195,7 @@ fun GalleryCommentsScreen(galleryDetail: GalleryDetail, navigator: NavController
|
||||
val commenter = comment.user ?: return
|
||||
dialogState.awaitPermissionOrCancel { Text(text = stringResource(R.string.filter_the_commenter, commenter)) }
|
||||
Filter(FilterMode.COMMENTER, commenter).remember()
|
||||
comments = comments.copy(comments = comments.comments.filterNot { it == comment })
|
||||
comments = comments.copy(comments = comments.comments.filterNot { it.user == commenter })
|
||||
findActivity<MainActivity>().showTip(R.string.filter_added, BaseScene.LENGTH_SHORT)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user