We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bed45d8 commit 0879c64Copy full SHA for 0879c64
app/src/main/java/com/infomaniak/mail/ui/main/thread/ThreadViewModel.kt
@@ -259,7 +259,7 @@ class ThreadViewModel @Inject constructor(
259
batchedMessages.postValue(ArrayList(output))
260
261
if (batch.size < batchSize) return
262
- delay(50L)
+ delay(DELAY_BETWEEN_EACH_BATCHED_MESSAGES)
263
sendBatchesRecursively(input.subList(batchSize, input.size), output)
264
}
265
@@ -471,5 +471,6 @@ class ThreadViewModel @Inject constructor(
471
companion object {
472
private const val SUPER_COLLAPSED_BLOCK_MINIMUM_MESSAGES_LIMIT = 5
473
private const val SUPER_COLLAPSED_BLOCK_FIRST_INDEX_LIMIT = 3
474
+ private const val DELAY_BETWEEN_EACH_BATCHED_MESSAGES = 50L
475
476
0 commit comments