Relaxed signed by check

pull/212/head
M66B 2 years ago
parent 6fa3a7c7b3
commit ee4e9bb010

@ -2503,7 +2503,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
String domain = UriHelper.getEmailDomain(((InternetAddress) message.from[0]).getAddress());
if (domain != null)
for (String signer : message.signedby.split(","))
if (signer.equals(domain)) { // TODO: root domain check?
if (Objects.equals(
UriHelper.getRootDomain(context, signer),
UriHelper.getRootDomain(context, domain))) {
known_signer = true;
break;
}

Loading…
Cancel
Save