1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Reverse addresses for unified outgoing folders

This commit is contained in:
M66B 2021-11-12 18:02:33 +01:00
parent 4224b9d45c
commit 3feb093f1f

View file

@ -1084,7 +1084,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean outbox = EntityFolder.OUTBOX.equals(message.folderType);
boolean outgoing = isOutgoing(message);
boolean reverse = (outgoing && viewType != ViewType.THREAD &&
(EntityFolder.isOutgoing(type) || viewType == ViewType.SEARCH));
(EntityFolder.isOutgoing(type) || viewType == ViewType.SEARCH) ||
(viewType == ViewType.UNIFIED && type == null &&
message.folderUnified && EntityFolder.isOutgoing(message.folderType)));
String selector = (reverse ? null : message.bimi_selector);
Address[] addresses = (reverse ? message.to : message.from);
Address[] senders = ContactInfo.fillIn(