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:
parent
4d72f8ca52
commit
a5581c69a5
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue