Fetch all exists messages

This commit is contained in:
M66B 2020-09-28 18:42:26 +02:00
parent ae3d4f9203
commit ca884e520f
1 changed files with 6 additions and 2 deletions

View File

@ -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,