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

@@ -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);