File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/thread Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ class ThreadFragment : Fragment() {
429
429
return @observe
430
430
}
431
431
432
- if (items.count() > ThreadViewModel . SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT ) {
432
+ if (threadState.hasSuperCollapsedBlockBeenClicked ) {
433
433
displayBatchedMessages(items)
434
434
} else {
435
435
threadAdapter.submitList(items)
Original file line number Diff line number Diff line change @@ -469,7 +469,7 @@ class ThreadViewModel @Inject constructor(
469
469
}
470
470
471
471
companion object {
472
- const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
472
+ private const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
473
473
private const val SUPER_COLLAPSED_BLOCK_FIRST_INDEX_LIMIT = 3
474
474
}
475
475
}
You can’t perform that action at this time.
0 commit comments