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
3 changed files with 9 additions and 3 deletions
@@ -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();
}