Skip to content

Commit

Permalink
Fix FCM error always showing, even when it works
Browse files Browse the repository at this point in the history
Change-Id: Ic9ed2bf74c252ee8b923f996642285681f504420
  • Loading branch information
SpiritCroc authored and p1gp1g committed Oct 5, 2021
1 parent 2772816 commit 182db4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vector/src/main/java/im/vector/app/core/pushers/UPHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 182db4c

Please sign in to comment.