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:
parent
80f333d969
commit
0ba860be2d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue