Move to shown folders only

This commit is contained in:
M66B
2018-11-24 18:38:34 +01:00
parent 2c4a9ca512
commit cdd34e26f7
2 changed files with 7 additions and 4 deletions

View File

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