Verified if SPF, DKIM and DMARC

pull/199/head
M66B 4 years ago
parent 9fbb534da4
commit b01b1c5898

@ -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…
Cancel
Save