1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Allow moving to drafts

This commit is contained in:
M66B 2018-11-23 16:26:19 +01:00
parent 4d72f8ca52
commit a5581c69a5
2 changed files with 3 additions and 4 deletions

View file

@ -1292,7 +1292,7 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
List<EntityFolder> folders = db.folder().getFolders(message.account);
List<EntityFolder> targets = new ArrayList<>();
for (EntityFolder f : folders)
if (!f.id.equals(message.folder) && !EntityFolder.DRAFTS.equals(f.type))
if (!f.id.equals(message.folder))
targets.add(f);
EntityFolder.sort(targets);

View file

@ -696,9 +696,8 @@ public class FragmentMessages extends FragmentEx {
List<EntityFolder> targets = new ArrayList<>();
for (EntityFolder folder : folders)
if (!EntityFolder.DRAFTS.equals(folder.type))
if (fid < 0 ? !folder.unified : !folder.id.equals(fid))
targets.add(folder);
if (fid < 0 ? !folder.unified : !folder.id.equals(fid))
targets.add(folder);
EntityFolder.sort(targets);