From bdefbe0055a1b57d17bd3111d59943bc903a8090 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Wed, 6 Jul 2022 06:31:39 -0400 Subject: [PATCH] allow to open mailto links inside webxdc documents --- src/org/thoughtcrime/securesms/WebxdcActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/WebxdcActivity.java b/src/org/thoughtcrime/securesms/WebxdcActivity.java index a0e56bea4..d2c7342fa 100644 --- a/src/org/thoughtcrime/securesms/WebxdcActivity.java +++ b/src/org/thoughtcrime/securesms/WebxdcActivity.java @@ -119,6 +119,10 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE // internal page, continue loading in the WebView return false; } + if (url.startsWith("mailto:")) { + return super.openOnlineUrl(url); + } + Toast.makeText(this, "Please embed needed resources.", Toast.LENGTH_LONG).show(); return true; // returning `true` causes the WebView to abort loading }