Filter for archive/trash/junk

This commit is contained in:
M66B 2023-06-04 08:09:57 +02:00
parent c068190edf
commit 2f31ceadaa
1 changed files with 10 additions and 1 deletions

View File

@ -7651,7 +7651,16 @@ public class FragmentMessages extends FragmentBase
}
static String getFilter(Context context, String name, AdapterMessage.ViewType viewType, String type) {
return "filter_" + (EntityFolder.isOutgoing(type) ? "out_" : "") + name;
String filter;
if (EntityFolder.isOutgoing(type))
filter = "out_";
else if (EntityFolder.ARCHIVE.equals(type) ||
EntityFolder.TRASH.equals(type) ||
EntityFolder.JUNK.equals(type))
filter = type.toLowerCase(Locale.ROOT) + "_";
else
filter = "";
return "filter_" + filter + name;
}
private void lockMessage(long id) throws IOException {