Show additional recipients in thread only

This commit is contained in:
M66B 2020-05-05 22:02:46 +02:00
parent 785c11ec9d
commit e191470573
1 changed files with 7 additions and 4 deletions

View File

@ -1304,10 +1304,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
private void setFrom(TupleMessageEx message, Address[] addresses) {
int recipients = (message.to == null ? 0 : message.to.length) +
(message.cc == null ? 0 : message.cc.length) + (message.bcc == null ? 0 : message.bcc.length);
if (message.to != null && message.to.length > 0)
recipients--;
int recipients = 0;
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);
if (message.to != null && message.to.length > 0)
recipients--;
}
if (recipients == 0)
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));