Skip to content

Commit

Permalink
Use already existing hasSuperCollapsedBlockBeenClicked
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 14, 2024
1 parent 6f66f51 commit bed45d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class ThreadFragment : Fragment() {
return@observe
}

if (items.count() > ThreadViewModel.SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT) {
if (threadState.hasSuperCollapsedBlockBeenClicked) {
displayBatchedMessages(items)
} else {
threadAdapter.submitList(items)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class ThreadViewModel @Inject constructor(
}

companion object {
const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
private const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
private const val SUPER_COLLAPSED_BLOCK_FIRST_INDEX_LIMIT = 3
}
}

0 comments on commit bed45d8

Please sign in to comment.