mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Adjust recipient count
This commit is contained in:
parent
48ac01065a
commit
f9c8a728f6
1 changed files with 7 additions and 2 deletions
|
@ -1234,8 +1234,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
private void setFrom(TupleMessageEx message, Address[] addresses) {
|
||||
int recipients = 0;
|
||||
if (viewType == ViewType.THREAD)
|
||||
recipients = (message.cc == null ? 0 : message.cc.length) + (message.bcc == null ? 0 : message.bcc.length);
|
||||
if (viewType == ViewType.THREAD) {
|
||||
recipients = (message.to == null ? 0 : message.to.length) +
|
||||
(message.cc == null ? 0 : message.cc.length) + (message.bcc == null ? 0 : message.bcc.length);
|
||||
boolean outgoing = isOutgoing(message);
|
||||
if (!outgoing && message.to != null && message.to.length > 0)
|
||||
recipients--;
|
||||
}
|
||||
|
||||
if (recipients == 0)
|
||||
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));
|
||||
|
|
Loading…
Reference in a new issue