Fix a bug setting nil soft logout credentials.

This commit is contained in:
Doug 2022-07-13 09:41:30 +01:00
parent 3c4452169e
commit 16254b2bbe
2 changed files with 13 additions and 9 deletions

View file

@ -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;

View file

@ -0,0 +1 @@
Fix a bug where the login screen is shown after choosing to create an account.