Simplification

pull/183/head
M66B 5 years ago
parent 6b77b4adb0
commit c5dabd3390

@ -143,8 +143,6 @@ public class EntityAttachment {
for (EntityAttachment attachment : attachments) {
File source = attachment.getFile(context);
long aid = attachment.id;
attachment.id = null;
attachment.message = newid;
attachment.progress = null;
@ -156,7 +154,6 @@ public class EntityAttachment {
Helper.copy(source, target);
} catch (IOException ex) {
Log.e(ex);
db.attachment().setError(aid, Log.formatThrowable(ex, false));
db.attachment().setError(attachment.id, Log.formatThrowable(ex, false));
}
}

Loading…
Cancel
Save