diff --git a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt index cc84f777a..6a24be3d7 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt @@ -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().showTip(R.string.filter_added, BaseScene.LENGTH_SHORT) }