diff --git a/src/components/views/settings/SetIdServer.js b/src/components/views/settings/SetIdServer.js index 8f7f30a2e1..0bb92d75e4 100644 --- a/src/components/views/settings/SetIdServer.js +++ b/src/components/views/settings/SetIdServer.js @@ -138,6 +138,7 @@ export default class SetIdServer extends React.Component { let newFormValue = this.state.idServer; if (!errStr) { MatrixClientPeg.get().setIdentityServerUrl(fullUrl); + localStorage.removeItem("mx_is_access_token", fullUrl); localStorage.setItem("mx_is_url", fullUrl); newFormValue = ''; }