diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index d0c71da8f3..699de8f525 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -2202,9 +2202,15 @@ public class FragmentMessages extends FragmentBase { } private String getDisplay(ArrayList result) { + boolean across = false; + for (MessageTarget target : result) + if (target.across) + across = true; + List displays = new ArrayList<>(); for (MessageTarget target : result) { - String display = target.account.name + "/" + target.folder.getDisplayName(getContext()); + String display = (across ? target.account.name + "/" : "") + + target.folder.getDisplayName(getContext()); if (!displays.contains(display)) displays.add(display); }