mirror of https://github.com/M66B/FairEmail.git
Fetch all exists messages
This commit is contained in:
parent
ae3d4f9203
commit
ca884e520f
|
@ -1476,10 +1476,14 @@ class Core {
|
||||||
if (imessages == null || imessages.length == 0)
|
if (imessages == null || imessages.length == 0)
|
||||||
EntityOperation.queue(context, message, EntityOperation.ADD);
|
EntityOperation.queue(context, message, EntityOperation.ADD);
|
||||||
else {
|
else {
|
||||||
long uid = ifolder.getUID(imessages[0]);
|
if (imessages.length > 1)
|
||||||
|
Log.w(folder.name + " exists messages=" + imessages.length);
|
||||||
|
for (int i = 0; i < imessages.length; i++) {
|
||||||
|
long uid = ifolder.getUID(imessages[i]);
|
||||||
EntityOperation.queue(context, folder, EntityOperation.FETCH, uid);
|
EntityOperation.queue(context, folder, EntityOperation.FETCH, uid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void onSynchronizeFolders(
|
static void onSynchronizeFolders(
|
||||||
Context context, EntityAccount account, Store istore,
|
Context context, EntityAccount account, Store istore,
|
||||||
|
|
Loading…
Reference in New Issue