Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 09c179f

Browse files
committed
Remove duplicate setupConnectionInfo(currentServer)
1 parent dbfcde7 commit 09c179f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/src/main/java/chat/rocket/android/authentication/loginoptions/presentation/LoginOptionsPresenter.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,20 @@ class LoginOptionsPresenter @Inject constructor(
7272
credentialToken = oauthToken
7373
credentialSecret = oauthSecret
7474
loginMethod = AuthenticationEvent.AuthenticationWithOauth
75-
setupConnectionInfo(currentServer)
7675
doAuthentication(TYPE_LOGIN_OAUTH)
7776
}
7877

7978
fun authenticateWithCas(casToken: String) {
8079
setupConnectionInfo(currentServer)
8180
credentialToken = casToken
8281
loginMethod = AuthenticationEvent.AuthenticationWithCas
83-
setupConnectionInfo(currentServer)
8482
doAuthentication(TYPE_LOGIN_CAS)
8583
}
8684

8785
fun authenticateWithSaml(samlToken: String) {
8886
setupConnectionInfo(currentServer)
8987
credentialToken = samlToken
9088
loginMethod = AuthenticationEvent.AuthenticationWithSaml
91-
setupConnectionInfo(currentServer)
9289
doAuthentication(TYPE_LOGIN_SAML)
9390
}
9491

0 commit comments

Comments
 (0)