fixing line length

This commit is contained in:
Adam Brown 2022-04-14 12:22:49 +01:00
parent 1b33c03d91
commit be22be53df
1 changed files with 8 additions and 3 deletions

View File

@ -41,6 +41,7 @@ import im.vector.app.features.login.LoginMode
import im.vector.app.features.login.ReAuthHelper import im.vector.app.features.login.ReAuthHelper
import im.vector.app.features.login.ServerType import im.vector.app.features.login.ServerType
import im.vector.app.features.login.SignMode import im.vector.app.features.login.SignMode
import im.vector.app.features.onboarding.StartAuthenticationFlowUseCase.StartAuthenticationResult
import kotlinx.coroutines.Job import kotlinx.coroutines.Job
import kotlinx.coroutines.flow.firstOrNull import kotlinx.coroutines.flow.firstOrNull
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@ -601,7 +602,11 @@ class OnboardingViewModel @AssistedInject constructor(
} }
} }
private fun startAuthenticationFlow(trigger: OnboardingAction?, homeServerConnectionConfig: HomeServerConnectionConfig, serverTypeOverride: ServerType? = null) { private fun startAuthenticationFlow(
trigger: OnboardingAction?,
homeServerConnectionConfig: HomeServerConnectionConfig,
serverTypeOverride: ServerType? = null
) {
currentHomeServerConnectionConfig = homeServerConnectionConfig currentHomeServerConnectionConfig = homeServerConnectionConfig
currentJob = viewModelScope.launch { currentJob = viewModelScope.launch {
@ -617,7 +622,7 @@ class OnboardingViewModel @AssistedInject constructor(
private suspend fun onAuthenticationStartedSuccess( private suspend fun onAuthenticationStartedSuccess(
trigger: OnboardingAction?, trigger: OnboardingAction?,
config: HomeServerConnectionConfig, config: HomeServerConnectionConfig,
authResult: StartAuthenticationFlowUseCase.StartAuthenticationResult, authResult: StartAuthenticationResult,
serverTypeOverride: ServerType? serverTypeOverride: ServerType?
) { ) {
rememberHomeServer(config.homeServerUri.toString()) rememberHomeServer(config.homeServerUri.toString())
@ -657,7 +662,7 @@ class OnboardingViewModel @AssistedInject constructor(
} }
} }
private fun updateServerSelection(config: HomeServerConnectionConfig, serverTypeOverride: ServerType?, authResult: StartAuthenticationFlowUseCase.StartAuthenticationResult) { private fun updateServerSelection(config: HomeServerConnectionConfig, serverTypeOverride: ServerType?, authResult: StartAuthenticationResult) {
setState { setState {
copy( copy(
serverType = alignServerTypeAfterSubmission(config, serverTypeOverride), serverType = alignServerTypeAfterSubmission(config, serverTypeOverride),