mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fix a bug setting nil soft logout credentials.
This commit is contained in:
parent
3c4452169e
commit
16254b2bbe
2 changed files with 13 additions and 9 deletions
|
@ -899,18 +899,21 @@
|
|||
// This is required before updating view's textfields (homeserver url...)
|
||||
[self loadViewIfNeeded];
|
||||
|
||||
// Force register mode
|
||||
self.authType = MXKAuthenticationTypeLogin;
|
||||
if (softLogoutCredentials)
|
||||
{
|
||||
// Force register mode
|
||||
self.authType = MXKAuthenticationTypeLogin;
|
||||
|
||||
[self setHomeServerTextFieldText:softLogoutCredentials.homeServer];
|
||||
[self setIdentityServerTextFieldText:softLogoutCredentials.identityServer];
|
||||
[self setHomeServerTextFieldText:softLogoutCredentials.homeServer];
|
||||
[self setIdentityServerTextFieldText:softLogoutCredentials.identityServer];
|
||||
|
||||
// Cancel potential request in progress
|
||||
[mxCurrentOperation cancel];
|
||||
mxCurrentOperation = nil;
|
||||
// Cancel potential request in progress
|
||||
[mxCurrentOperation cancel];
|
||||
mxCurrentOperation = nil;
|
||||
|
||||
// Remove the current auth inputs view
|
||||
self.authInputsView = nil;
|
||||
// Remove the current auth inputs view
|
||||
self.authInputsView = nil;
|
||||
}
|
||||
|
||||
// Set parameters and trigger a refresh (the parameters will be taken into account during [handleAuthenticationSession:])
|
||||
_softLogoutCredentials = softLogoutCredentials;
|
||||
|
|
1
changelog.d/pr-6417.bugfix
Normal file
1
changelog.d/pr-6417.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix a bug where the login screen is shown after choosing to create an account.
|
Loading…
Reference in a new issue