From 5b450ff18f8c5e2b592bcd715b7a43833fe5dcbe Mon Sep 17 00:00:00 2001 From: Lokesh Gidra Date: Wed, 8 Nov 2023 12:17:32 +0800 Subject: [PATCH] Fix not filter all comments --- .../com/hippo/ehviewer/ui/scene/GalleryCommentsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }