Add feature to scroll down in imap folder to load more mails, and speedup of imap folder change

This commit is contained in:
2026-11-09 20:42:31 +02:00
parent b14209a5ae
commit d7b6e31518
9 changed files with 395 additions and 41 deletions
@@ -182,7 +182,7 @@ internal object AndroidMailService {
result.put(value)
cached.put(value)
}
AndroidAccountVault.cacheMessages(account.optString("id"), requestedFolder, cached)
AndroidAccountVault.cacheMessages(account.optString("id"), requestedFolder, cached, replace = offset <= 0)
JSONObject().put("messages", result).put("total", total)
.put("start", first).put("end", end).put("folder", requestedFolder)
} finally {