mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Cleaning
This commit is contained in:
parent
5b8215a356
commit
76b425ee8a
3 changed files with 6 additions and 6 deletions
|
@ -46,7 +46,7 @@ internal data class LoginFlow(
|
|||
val _devSsoIdentityProvider: List<SsoIdentityProvider>? = null,
|
||||
|
||||
@Json(name = "identity_providers")
|
||||
val _ssoIdentityProvider: List<SsoIdentityProvider>? = null,
|
||||
val _ssoIdentityProvider: List<SsoIdentityProvider>? = null
|
||||
|
||||
) {
|
||||
val ssoIdentityProvider = _ssoIdentityProvider ?: _devSsoIdentityProvider
|
||||
|
|
|
@ -125,8 +125,8 @@ internal class DefaultInitializeCrossSigningTask @Inject constructor(
|
|||
try {
|
||||
uploadSigningKeysTask.execute(uploadSigningKeysParams)
|
||||
} catch (failure: Throwable) {
|
||||
if (params.interactiveAuthInterceptor == null ||
|
||||
!handleUIA(failure, params.interactiveAuthInterceptor) { authUpdate ->
|
||||
if (params.interactiveAuthInterceptor == null
|
||||
|| !handleUIA(failure, params.interactiveAuthInterceptor) { authUpdate ->
|
||||
uploadSigningKeysTask.execute(uploadSigningKeysParams.copy(userAuthParam = authUpdate))
|
||||
}) {
|
||||
Timber.d("## UIA: propagate failure")
|
||||
|
|
|
@ -135,9 +135,9 @@ class SocialLoginButtonsView @JvmOverloads constructor(context: Context, attrs:
|
|||
if (isInEditMode) {
|
||||
ssoIdentityProviders = listOf(
|
||||
SsoIdentityProvider("Google", "Google", null, SsoIdentityProvider.BRAND_GOOGLE),
|
||||
SsoIdentityProvider("Facebook", "Facebook",null, SsoIdentityProvider.BRAND_FACEBOOK),
|
||||
SsoIdentityProvider("Apple", "Apple",null, SsoIdentityProvider.BRAND_APPLE),
|
||||
SsoIdentityProvider("GitHub", "GitHub",null, SsoIdentityProvider.BRAND_GITHUB),
|
||||
SsoIdentityProvider("Facebook", "Facebook", null, SsoIdentityProvider.BRAND_FACEBOOK),
|
||||
SsoIdentityProvider("Apple", "Apple", null, SsoIdentityProvider.BRAND_APPLE),
|
||||
SsoIdentityProvider("GitHub", "GitHub", null, SsoIdentityProvider.BRAND_GITHUB),
|
||||
SsoIdentityProvider("Twitter", "Twitter", null, SsoIdentityProvider.BRAND_TWITTER),
|
||||
SsoIdentityProvider("Gitlab", "Gitlab", null, SsoIdentityProvider.BRAND_GITLAB),
|
||||
SsoIdentityProvider("Custom_pro", "SSO", null, null)
|
||||
|
|
Loading…
Add table
Reference in a new issue