From eed7d15b0e6c811337491af8b86ceb1ca31df938 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 8 Dec 2021 22:54:15 +0100 Subject: [PATCH] Legals: only display external URLs. --- .../im/vector/app/features/settings/legals/LegalsController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/legals/LegalsController.kt b/vector/src/main/java/im/vector/app/features/settings/legals/LegalsController.kt index 754a31be31..fa80bf2e9e 100644 --- a/vector/src/main/java/im/vector/app/features/settings/legals/LegalsController.kt +++ b/vector/src/main/java/im/vector/app/features/settings/legals/LegalsController.kt @@ -115,7 +115,7 @@ class LegalsController @Inject constructor( discoveryPolicyItem { id(tag + policy.url) name(policy.name) - url(policy.url) + url(policy.url.takeIf { it.startsWith("http") }) clickListener { host.listener?.openPolicy(policy) } } }