Skip to content

Commit

Permalink
Remove Tchap unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Buquet committed Sep 24, 2024
1 parent 82e9a40 commit 241c9a1
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ struct TchapAuthenticationLoginScreen: View {

}

/// The sever information section that includes a button to select a different server.
var serverInfo: some View {
AuthenticationServerInfoSection(address: viewModel.viewState.homeserver.address,
flow: .login) {
viewModel.send(viewAction: .selectServer)
}
}

/// The form with text fields for username and password, along with a submit button.
var loginForm: some View {
VStack(spacing: 14) {
Expand Down Expand Up @@ -156,17 +148,9 @@ struct TchapAuthenticationLoginScreen: View {
}
}

// // Tchap:
// func usernameChanged(newText: String) {
// usernameEditingChanged(isEditing: <#T##Bool#>)
// }

/// Parses the username for a homeserver.
func usernameEditingChanged(isEditing: Bool) {
guard !isEditing, !viewModel.username.isEmpty else { return }

// Tchap: don't parse username
// viewModel.send(viewAction: .parseUsername)
}

/// Resets the password field focus.
Expand Down

0 comments on commit 241c9a1

Please sign in to comment.