mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 15:44:54 +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.sessionstorage.api.SessionStore
|
||||||
import io.element.android.libraries.ui.utils.MultipleTapToUnlock
|
import io.element.android.libraries.ui.utils.MultipleTapToUnlock
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
import timber.log.Timber
|
||||||
|
|
||||||
@AssistedInject
|
@AssistedInject
|
||||||
class OnBoardingPresenter(
|
class OnBoardingPresenter(
|
||||||
@@ -83,7 +84,8 @@ class OnBoardingPresenter(
|
|||||||
try {
|
try {
|
||||||
defaultAccountProviderAccessControl.assertIsAllowedToConnectToAccountProvider(it)
|
defaultAccountProviderAccessControl.assertIsAllowedToConnectToAccountProvider(it)
|
||||||
true
|
true
|
||||||
} catch (_: Exception) {
|
} catch (e: Exception) {
|
||||||
|
Timber.e(e, "Failed to check account provider from link, assuming not allowed")
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
@@ -31,6 +31,9 @@ sealed interface AccountProvider {
|
|||||||
}.sanitized()
|
}.sanitized()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the server name, to be used in the UI.
|
||||||
|
*/
|
||||||
fun friendlyServerName(): String {
|
fun friendlyServerName(): String {
|
||||||
return when (this) {
|
return when (this) {
|
||||||
is Generic -> serverName
|
is Generic -> serverName
|
||||||
|
|||||||
Reference in New Issue
Block a user