Send the Signup analytics event (#6118)

* Implement the Signup event from AuthenticationViewController.

Use AuthenticationFlow instead of MXKAuthenticationType.
Create new AuthenticationType that aligns with AnalyticsEvent naming.
Add additional cases from AnalyticsEvents.
This commit is contained in:
Doug
2022-05-06 13:08:54 +01:00
committed by GitHub
parent b5e3b4613b
commit c4c95ca56b
21 changed files with 232 additions and 54 deletions
@@ -98,7 +98,7 @@ class AuthenticationService: NSObject {
let loginWizard = LoginWizard()
self.loginWizard = loginWizard
if flow == .registration {
if flow == .register {
do {
let registrationWizard = RegistrationWizard(client: client)
state.homeserver.registrationFlow = try await registrationWizard.registrationFlow()
@@ -124,7 +124,7 @@ class AuthenticationService: NSObject {
switch flow {
case .login:
return client.loginFallbackURL
case .registration:
case .register:
return client.registerFallbackURL
}
}