diff --git a/feature/search/src/main/java/pokitmons/pokit/search/components/searchitemlist/SearchItemList.kt b/feature/search/src/main/java/pokitmons/pokit/search/components/searchitemlist/SearchItemList.kt index 1f1a9b21..d9a7ea9c 100644 --- a/feature/search/src/main/java/pokitmons/pokit/search/components/searchitemlist/SearchItemList.kt +++ b/feature/search/src/main/java/pokitmons/pokit/search/components/searchitemlist/SearchItemList.kt @@ -91,7 +91,7 @@ internal fun SearchItemList( title = link.title, sub = "${link.dateString} ยท ${link.domainUrl}", painter = rememberAsyncImagePainter(link.imageUrl), - notRead = link.isRead, + notRead = !link.isRead, badgeText = stringResource(id = link.linkType.textResourceId), onClickKebab = onClickLinkKebab, onClickItem = onClickLink, diff --git a/feature/search/src/main/java/pokitmons/pokit/search/paging/LinkPaging.kt b/feature/search/src/main/java/pokitmons/pokit/search/paging/LinkPaging.kt index 53cbad19..54e31ec0 100644 --- a/feature/search/src/main/java/pokitmons/pokit/search/paging/LinkPaging.kt +++ b/feature/search/src/main/java/pokitmons/pokit/search/paging/LinkPaging.kt @@ -58,7 +58,7 @@ class LinkPaging( page = currentPageIndex, size = perPage * firstRequestPage, sort = listOf(), - isRead = if (!filter.notRead) false else null, + isRead = if (filter.notRead) false else null, favorites = if (filter.bookmark) true else null, startDate = filter.startDate?.toDateString(), endDate = filter.endDate?.toDateString(), @@ -96,7 +96,7 @@ class LinkPaging( page = currentPageIndex, size = perPage, sort = listOf(), - isRead = if (!filter.notRead) false else null, + isRead = if (filter.notRead) false else null, favorites = if (filter.bookmark) true else null, startDate = filter.startDate?.toDateString(), endDate = filter.endDate?.toDateString(),