Log errors and fix quality issues

This commit is contained in:
Benoit Marty
2026-09-14 18:30:29 +02:00
parent f97dac2d5b
commit 5b0d7bf5a7
3 changed files with 7 additions and 2 deletions
@@ -34,6 +34,7 @@ import io.element.android.libraries.matrix.api.accountprovider.AccountProvider
import io.element.android.libraries.sessionstorage.api.SessionStore
import io.element.android.libraries.ui.utils.MultipleTapToUnlock
import kotlinx.coroutines.launch
import timber.log.Timber
@AssistedInject
class OnBoardingPresenter(
@@ -83,7 +84,8 @@ class OnBoardingPresenter(
try {
defaultAccountProviderAccessControl.assertIsAllowedToConnectToAccountProvider(it)
true
} catch (_: Exception) {
} catch (e: Exception) {
Timber.e(e, "Failed to check account provider from link, assuming not allowed")
false
}
}
@@ -31,6 +31,9 @@ sealed interface AccountProvider {
}.sanitized()
}
/**
* Return the server name, to be used in the UI.
*/
fun friendlyServerName(): String {
return when (this) {
is Generic -> serverName