Keep flags when downloading complete message

Avoid that clicking "Download complete message" deletes all flags of the
affected message from the local store.
This commit is contained in:
Trogel 2017-09-30 17:49:07 +02:00
parent dbdccbf4da
commit ecdd52c8ee

View file

@ -2322,6 +2322,7 @@ public class MessagingController {
} else { } else {
FetchProfile fp = new FetchProfile(); FetchProfile fp = new FetchProfile();
fp.add(FetchProfile.Item.BODY); fp.add(FetchProfile.Item.BODY);
fp.add(FetchProfile.Item.FLAGS);
remoteFolder.fetch(Collections.singletonList(remoteMessage), fp, null); remoteFolder.fetch(Collections.singletonList(remoteMessage), fp, null);
localFolder.appendMessages(Collections.singletonList(remoteMessage)); localFolder.appendMessages(Collections.singletonList(remoteMessage));
} }