mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Always show reply-to address when different domain
This commit is contained in:
parent
ece5780503
commit
a438d86929
1 changed files with 5 additions and 4 deletions
|
@ -2121,7 +2121,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
int maxRecipients = (compact ? MAX_RECIPIENTS_COMPACT : MAX_RECIPIENTS_NORMAL);
|
||||
Spanned submitter = formatAddresses(message.submitter, true);
|
||||
Spanned from = formatAddresses(message.senders, true);
|
||||
Spanned replyto = formatAddresses(message.reply, true);
|
||||
|
||||
grpAddresses.setVisibility(View.VISIBLE);
|
||||
|
||||
|
@ -2158,9 +2157,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
tvTo.setVisibility((!show_recipients || show_addresses) && (message.to != null && message.to.length > 0) ? View.VISIBLE : View.GONE);
|
||||
tvTo.setText(formatAddresses(message.to, full, show_addresses ? Integer.MAX_VALUE : maxRecipients));
|
||||
|
||||
tvReplyToTitle.setVisibility(show_addresses && !TextUtils.isEmpty(replyto) ? View.VISIBLE : View.GONE);
|
||||
tvReplyTo.setVisibility(show_addresses && !TextUtils.isEmpty(replyto) ? View.VISIBLE : View.GONE);
|
||||
tvReplyTo.setText(replyto);
|
||||
boolean show_reply = (Boolean.FALSE.equals(message.reply_domain) || show_addresses) &&
|
||||
(message.reply != null && message.reply.length > 0);
|
||||
tvReplyToTitle.setVisibility(show_reply ? View.VISIBLE : View.GONE);
|
||||
tvReplyTo.setVisibility(show_reply ? View.VISIBLE : View.GONE);
|
||||
tvReplyTo.setText(formatAddresses(message.reply, show_addresses));
|
||||
|
||||
tvCcTitle.setVisibility(message.cc == null || message.cc.length == 0 ? View.GONE : View.VISIBLE);
|
||||
tvCc.setVisibility(message.cc == null || message.cc.length == 0 ? View.GONE : View.VISIBLE);
|
||||
|
|
Loading…
Reference in a new issue