mirror of https://github.com/M66B/FairEmail.git
Show authenticated VMC only
This commit is contained in:
parent
a3169a86ae
commit
cfaf409d6e
|
@ -1559,20 +1559,22 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
ibAvatar.setVisibility(main == null || !main.hasPhoto() ? View.GONE : View.VISIBLE);
|
||||
|
||||
boolean vmc = (main != null && "vmc".equals(main.getType()));
|
||||
boolean verified = (main != null && main.isVerified() &&
|
||||
if (main != null && "vmc".equals(main.getType()) &&
|
||||
Boolean.TRUE.equals(message.dkim) &&
|
||||
Boolean.TRUE.equals(message.spf) &&
|
||||
Boolean.TRUE.equals(message.dmarc));
|
||||
ibVerified.setImageLevel(verified ? 1 : 0);
|
||||
ibVerified.setImageTintList(ColorStateList.valueOf(verified
|
||||
Boolean.TRUE.equals(message.dmarc)) {
|
||||
ibVerified.setImageLevel(main.isVerified() ? 1 : 0);
|
||||
ibVerified.setImageTintList(ColorStateList.valueOf(main.isVerified()
|
||||
? colorAccent : colorControlNormal));
|
||||
ibVerified.setContentDescription(context.getString(verified
|
||||
? R.string.title_advanced_bimi_verified : R.string.title_advanced_bimi_unverified));
|
||||
ibVerified.setVisibility(vmc ? View.VISIBLE : View.GONE);
|
||||
if (authentication_indicator && vmc)
|
||||
ibVerified.setContentDescription(context.getString(main.isVerified()
|
||||
? R.string.title_advanced_bimi_verified
|
||||
: R.string.title_advanced_bimi_unverified));
|
||||
ibVerified.setVisibility(View.VISIBLE);
|
||||
|
||||
if (authentication_indicator)
|
||||
ibAuth.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
if (distinguish_contacts) {
|
||||
boolean known = false;
|
||||
|
|
Loading…
Reference in New Issue