We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2da9a commit 7e1023bCopy full SHA for 7e1023b
app/src/main/java/com/infomaniak/mail/ui/main/thread/ThreadViewModel.kt
@@ -258,7 +258,7 @@ class ThreadViewModel @Inject constructor(
258
batchedMessages.postValue(ArrayList(output))
259
260
if (batch.size < batchSize) return
261
- delay(50L)
+ delay(DELAY_BETWEEN_EACH_BATCHED_MESSAGES)
262
sendBatchesRecursively(input.subList(batchSize, input.size), output)
263
}
264
@@ -458,5 +458,6 @@ class ThreadViewModel @Inject constructor(
458
companion object {
459
private const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
460
private const val SUPER_COLLAPSED_BLOCK_FIRST_INDEX_LIMIT = 3
461
+ private const val DELAY_BETWEEN_EACH_BATCHED_MESSAGES = 50L
462
463
0 commit comments