fix(community): 리스트 잠금 반응 표시를 숨긴다

This commit is contained in:
2026-07-12 09:54:10 +09:00
parent ced226c3ef
commit 9da6c7381d
5 changed files with 24 additions and 2 deletions
@@ -35,7 +35,8 @@ private fun CreatorChannelCommunityPostResponse.toCommunityPostUiModel(
existOrdered = existOrdered,
likeCount = likeCount,
commentCount = commentCount,
showComment = isCommentAvailable,
showReaction = !isLocked,
showComment = isCommentAvailable && !isLocked,
showNotice = isPinned,
isPinned = isPinned,
isLocked = isLocked,
@@ -37,6 +37,7 @@ data class CreatorChannelCommunityPostUiModel(
val existOrdered: Boolean,
val likeCount: Int,
val commentCount: Int,
val showReaction: Boolean,
val showComment: Boolean,
val showNotice: Boolean,
val isPinned: Boolean,
@@ -65,10 +65,13 @@ class CreatorChannelCommunityListAdapter(
tvCreatorChannelCommunityListTime.text = item.createdAtText
layoutCreatorChannelCommunityListNotice.isVisible = item.showNotice
tvCreatorChannelCommunityListBody.text = item.content
layoutCreatorChannelCommunityListReaction.isVisible = item.showReaction || item.showComment
tvCreatorChannelCommunityListCommentCount.text = item.commentCount.moneyFormat()
tvCreatorChannelCommunityListCommentCount.isVisible = item.showComment
ivCreatorChannelCommunityListComment.isVisible = item.showComment
tvCreatorChannelCommunityListLikeCount.text = item.likeCount.moneyFormat()
tvCreatorChannelCommunityListLikeCount.isVisible = item.showReaction
ivCreatorChannelCommunityListLike.isVisible = item.showReaction
val visibleImageUrl = item.imageUrl.takeUnless { item.isLocked }
layoutCreatorChannelCommunityListImageContainer.isVisible =