Reversing messages order so that newest emails get fetched first
This commit is contained in:
parent
ed5f272c07
commit
a944b4b69c
|
@ -154,7 +154,7 @@ open class EmailsFetcher(
|
||||||
// executed, making the overall process very slow -> use FetchProfile to prefetch requested data with a single request
|
// executed, making the overall process very slow -> use FetchProfile to prefetch requested data with a single request
|
||||||
folder.fetch(messages, getFetchProfile(status))
|
folder.fetch(messages, getFetchProfile(status))
|
||||||
|
|
||||||
messages.mapNotNull { message ->
|
messages.reversed().mapNotNull { message ->
|
||||||
async(coroutineDispatcher) {
|
async(coroutineDispatcher) {
|
||||||
try {
|
try {
|
||||||
getEmail(message, status)
|
getEmail(message, status)
|
||||||
|
|
Loading…
Reference in New Issue