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

[FIX] Fix some problems with registration #2173

Merged
merged 1 commit into from Sep 4, 2018
Merged

Conversation

cardoso
Copy link
Collaborator

@cardoso cardoso commented Sep 4, 2018

@RocketChat/ios

Fixes

  • Some UI code was being called in background
  • Bad UI strings
  • Bad error handling when email already exists

Closes #2160

@cardoso cardoso added this to the 3.1.0 milestone Sep 4, 2018
init?(reason: String) {
switch reason {
case "Email already exists.":
self = .emailAlreadyExists
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ 👍

@@ -173,7 +173,9 @@ final class SignupTableViewController: BaseTableViewController {

startLoading()
AuthManager.signup(with: name, email, password, customFields: customFields) { [weak self] response in
stopLoading()
DispatchQueue.main.async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to force the main thread here? It should already be in the main thread 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugger is reporting it's being called in a background thread.

@rafaelks rafaelks added this to In Progress in Cycle 09: 09/05 ~ 09/27 via automation Sep 4, 2018
@rafaelks rafaelks merged commit 740fe0e into develop Sep 4, 2018
Cycle 09: 09/05 ~ 09/27 automation moved this from In Progress to Done Sep 4, 2018
@rafaelks rafaelks deleted the fix/registration branch September 4, 2018 17:31
@rafaelks rafaelks modified the milestones: 3.1.0, 3.2.0 Sep 5, 2018
@rafaelks rafaelks modified the milestones: 3.2.0, 3.1.1 Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants