Merge pull request #4547 from matrix-org/travis/fix-user-panel

Don't try to reload profile information when closing the user panel
This commit is contained in:
Travis Ralston 2020-05-07 10:21:17 -06:00 committed by GitHub
commit 2aa7a6087c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -112,7 +112,10 @@ export default class SecurityUserSettingsTab extends React.Component {
};
_onGoToUserProfileClick = () => {
window.location.href = "#/user/" + MatrixClientPeg.get().getUserId();
dis.dispatch({
action: 'view_user_info',
userId: MatrixClientPeg.get().getUserId(),
});
this.props.closeSettingsFn();
}