diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java index de49bf4f8d..ea562f1874 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogOpenLink.java @@ -563,7 +563,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase { host = Uri.decode(host); text = "tel://" + host; } else if ("mailto".equals(scheme)) { - if (host != null) { + if (host == null) { MailTo email = MailTo.parse(uri.toString()); host = UriHelper.getEmailDomain(email.getTo()); }