Small improvement

This commit is contained in:
M66B 2020-09-30 13:38:01 +02:00
parent 980033feff
commit f9a0c294b6
1 changed files with 2 additions and 2 deletions

View File

@ -1861,6 +1861,8 @@ class Core {
imessages = Arrays.copyOfRange(imessages,
imessages.length - account.max_messages, imessages.length);
db.folder().setFolderSyncState(folder.id, "downloading");
boolean hasUidl = caps.containsKey("UIDL");
if (hasUidl) {
FetchProfile ifetch = new FetchProfile();
@ -1868,8 +1870,6 @@ class Core {
ifolder.fetch(imessages, ifetch);
}
db.folder().setFolderSyncState(folder.id, "downloading");
List<TupleUidl> ids = db.message().getUidls(folder.id);
Log.i(folder.name + " POP existing=" + ids.size() + " uidl=" + hasUidl);