Reversing messages order so that newest emails get fetched first

This commit is contained in:
dankito 2024-12-01 21:11:07 +01:00
parent ed5f272c07
commit a944b4b69c
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ open class EmailsFetcher(
// executed, making the overall process very slow -> use FetchProfile to prefetch requested data with a single request
folder.fetch(messages, getFetchProfile(status))
messages.mapNotNull { message ->
messages.reversed().mapNotNull { message ->
async(coroutineDispatcher) {
try {
getEmail(message, status)