Small optimization

This commit is contained in:
M66B
2019-11-01 10:25:57 +01:00
parent 776059e465
commit dffecce642
2 changed files with 6 additions and 3 deletions

View File

@@ -4039,9 +4039,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
String html = parts.getHtml(context);
Helper.writeText(message.getFile(context), html);
// Remove attachments
for (EntityAttachment local : attachments)
db.attachment().deleteAttachment(local.id);
// Remove existing attachments
db.attachment().deleteAttachments(id);
// Add decrypted attachments
List<EntityAttachment> remotes = parts.getAttachments();