1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Reverse addresses only in sent messages folder or when searching

This commit is contained in:
M66B 2021-04-24 20:17:19 +02:00
parent 80f333d969
commit 0ba860be2d

View file

@ -919,7 +919,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean inbox = EntityFolder.INBOX.equals(message.folderType);
boolean outbox = EntityFolder.OUTBOX.equals(message.folderType);
boolean outgoing = isOutgoing(message);
boolean reverse = (outgoing && (viewType != ViewType.THREAD || !threading));
boolean reverse = (outgoing && viewType != ViewType.THREAD &&
(EntityFolder.SENT.equals(type) || viewType == ViewType.SEARCH));
Address[] addresses = (reverse ? message.to : message.from);
Address[] senders = ContactInfo.fillIn(
reverse && !show_recipients ? message.to : message.senders, prefer_contact, only_contact);