From 182db4c97a2458e8fc1bff794416160c6830f5e9 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Tue, 5 Oct 2021 07:29:59 +0200 Subject: [PATCH] Fix FCM error always showing, even when it works Change-Id: Ic9ed2bf74c252ee8b923f996642285681f504420 --- vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt b/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt index b9eca3ff203..c1a074576ba 100644 --- a/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt +++ b/vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt @@ -208,6 +208,9 @@ object UPHelper { fun getPrivacyFriendlyUpEndpoint(context: Context): String? { val endpoint = getUpEndpoint(context) if (endpoint.isNullOrEmpty()) return endpoint + if (isEmbeddedDistributor(context)) { + return endpoint + } return try { val parsed = URL(endpoint) "${parsed.protocol}://${parsed.host}"