diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentNode.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentNode.kt index a9a7ec1d..30f1e347 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentNode.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentNode.kt @@ -67,12 +67,8 @@ internal fun createListNode( comments: List, commentState: PostComments, ): MutableList { - // Only check unread state if there any comments read in the first place. This somewhat restores - // the first view behavior from when `commentState` was nullable. - val hasUnread = commentState.commentIds.isNotEmpty() - val isUnread = - if (hasUnread) ({ id: String -> !commentState.commentIds.contains(id) }) else { _ -> false } val commentNodes = mutableListOf() + val isUnread = { id: String -> !commentState.commentIds.contains(id) } for (i in comments.indices) { if (comments[i].parentComment == null) {