Fixed composing messages

pull/50/head
M66B 6 years ago
parent 6af53cf1a1
commit b108659c06

@ -712,11 +712,10 @@ public class FragmentCompose extends FragmentEx {
draft.id = db.message().insertMessage(draft);
draft.write(context, body == null ? "" : body);
if (args.containsKey("attachments")) {
ArrayList<Uri> uris = args.getParcelableArrayList("attachments");
ArrayList<Uri> uris = args.getParcelableArrayList("attachments");
if (uris != null)
for (Uri uri : uris)
addAttachment(context, draft.id, uri);
}
EntityOperation.queue(db, draft, EntityOperation.ADD);

Loading…
Cancel
Save