Refactoring

pull/147/head
M66B 6 years ago
parent c8a989fa60
commit b5cc0bc1f7

@ -1622,8 +1622,10 @@ public class ServiceSynchronize extends LifecycleService {
// Append message
MimeMessage imessage = MessageHelper.from(this, message, isession);
if (EntityFolder.DRAFTS.equals(folder.type) && ifolder.getPermanentFlags().contains(Flags.Flag.DRAFT))
imessage.setFlag(Flags.Flag.DRAFT, true);
if (EntityFolder.DRAFTS.equals(folder.type)) {
if (ifolder.getPermanentFlags().contains(Flags.Flag.DRAFT))
imessage.setFlag(Flags.Flag.DRAFT, true);
}
ifolder.appendMessages(new Message[]{imessage});
}

Loading…
Cancel
Save