mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Verified if SPF, DKIM and DMARC
This commit is contained in:
parent
9fbb534da4
commit
b01b1c5898
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue