fix(community): 리스트 잠금 반응 표시를 숨긴다
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
+1
@@ -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,
|
||||
|
||||
+3
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user