Show authenticated VMC only

pull/200/head
M66B 3 years ago
parent a3169a86ae
commit cfaf409d6e

@ -1559,19 +1559,21 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
ibAvatar.setVisibility(main == null || !main.hasPhoto() ? View.GONE : View.VISIBLE); ibAvatar.setVisibility(main == null || !main.hasPhoto() ? View.GONE : View.VISIBLE);
boolean vmc = (main != null && "vmc".equals(main.getType())); if (main != null && "vmc".equals(main.getType()) &&
boolean verified = (main != null && main.isVerified() &&
Boolean.TRUE.equals(message.dkim) && Boolean.TRUE.equals(message.dkim) &&
Boolean.TRUE.equals(message.spf) && Boolean.TRUE.equals(message.spf) &&
Boolean.TRUE.equals(message.dmarc)); Boolean.TRUE.equals(message.dmarc)) {
ibVerified.setImageLevel(verified ? 1 : 0); ibVerified.setImageLevel(main.isVerified() ? 1 : 0);
ibVerified.setImageTintList(ColorStateList.valueOf(verified ibVerified.setImageTintList(ColorStateList.valueOf(main.isVerified()
? colorAccent : colorControlNormal)); ? colorAccent : colorControlNormal));
ibVerified.setContentDescription(context.getString(verified ibVerified.setContentDescription(context.getString(main.isVerified()
? R.string.title_advanced_bimi_verified : R.string.title_advanced_bimi_unverified)); ? R.string.title_advanced_bimi_verified
ibVerified.setVisibility(vmc ? View.VISIBLE : View.GONE); : R.string.title_advanced_bimi_unverified));
if (authentication_indicator && vmc) ibVerified.setVisibility(View.VISIBLE);
ibAuth.setVisibility(View.GONE);
if (authentication_indicator)
ibAuth.setVisibility(View.GONE);
}
} }
if (distinguish_contacts) { if (distinguish_contacts) {

Loading…
Cancel
Save