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 @@ -414,7 +414,7 @@ class ThreadFragment : Fragment() {
414
414
return @observe
415
415
}
416
416
417
- if (items.count() > ThreadViewModel . SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT ) {
417
+ if (threadState.hasSuperCollapsedBlockBeenClicked ) {
418
418
displayBatchedMessages(items)
419
419
} else {
420
420
threadAdapter.submitList(items)
Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ class ThreadViewModel @Inject constructor(
456
456
}
457
457
458
458
companion object {
459
- const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
459
+ private const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
460
460
private const val SUPER_COLLAPSED_BLOCK_FIRST_INDEX_LIMIT = 3
461
461
}
462
462
}
You can’t perform that action at this time.
0 commit comments