mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Log errors and fix quality issues
This commit is contained in:
+1
-1
Submodule enterprise updated: 2f6b36a314...e4f10a779c
+3
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user