Verified if SPF, DKIM and DMARC

This commit is contained in:
M66B
2021-07-13 17:26:37 +02:00
parent 9fbb534da4
commit b01b1c5898

View File

@@ -1522,8 +1522,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibAvatar.setTag(lookupUri);
ibAvatar.setEnabled(lookupUri != null);
}
ivVerified.setVisibility(main == null || !main.isVerified() ? View.GONE : View.VISIBLE);
ibAvatar.setVisibility(main == null || !main.hasPhoto() ? View.GONE : View.VISIBLE);
boolean verified = (main != null && main.isVerified() &&
Boolean.TRUE.equals(message.spf) &&
Boolean.TRUE.equals(message.dkim) &&
Boolean.TRUE.equals(message.dmarc));
ivVerified.setVisibility(verified ? View.VISIBLE : View.GONE);
}
if (distinguish_contacts) {