Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #591 from matrix-org/riot_2643
Browse files Browse the repository at this point in the history
Riot: Ability to disable all identity server functionality via the config file
  • Loading branch information
SBiOSoftWhare authored Aug 14, 2019
2 parents 7e084a3 + de3b5b4 commit 65d2287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 1 addition & 7 deletions MatrixKit/Controllers/MXKAuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,7 @@ - (void)setHomeServerTextFieldText:(NSString *)homeServerUrl
}

- (void)setIdentityServerTextFieldText:(NSString *)identityServerUrl
{
if (!identityServerUrl.length)
{
// Force refresh with default value
identityServerUrl = _defaultIdentityServerUrl;
}

{
_identityServerTextField.text = identityServerUrl;

// Update REST client
Expand Down
5 changes: 2 additions & 3 deletions MatrixKit/Models/Account/MXKAccount.m
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ - (void)setIdentityServerURL:(NSString *)identityServerURL
}
else
{
_identityServerURL = nil;
// By default, use the same address for the identity server
[mxRestClient setIdentityServer:mxCredentials.homeServer];
_identityServerURL = nil;
[mxRestClient setIdentityServer:nil];
}

// Archive updated field
Expand Down

0 comments on commit 65d2287

Please sign in to comment.