Browse Source

Do not log error in case of 404.

pull/3012/head
Benoit Marty 3 months ago
parent
commit
dc7e56eb87
  1. 2
      features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt

2
features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt

@ -44,11 +44,11 @@ class DefaultElementCallBaseUrlProvider @Inject constructor( @@ -44,11 +44,11 @@ class DefaultElementCallBaseUrlProvider @Inject constructor(
try {
callWellknownAPI.getCallWellKnown().widgetUrl
} catch (e: HttpException) {
Timber.w(e, "Failed to fetch wellknown data")
// Ignore Http 404, but re-throws any other exceptions
if (e.code() != HttpURLConnection.HTTP_NOT_FOUND) {
throw e
}
Timber.w(e, "Failed to fetch wellknown data")
null
}
}

Loading…
Cancel
Save