Merge pull request #936 from matrix-org/luke/new-guest-access-need-to-set-mx-id-beore-user-settings

Block user settings with view_set_mxid
pull/21833/head
Luke Barnard 2017-05-26 18:48:55 +01:00 committed by GitHub
commit fd27d6dab1
1 changed files with 4 additions and 1 deletions

View File

@ -433,6 +433,10 @@ module.exports = React.createClass({
this._viewIndexedRoom(payload.roomIndex);
break;
case 'view_user_settings':
if (MatrixClientPeg.get().isGuest()) {
dis.dispatch({action: 'view_set_mxid'});
break;
}
this._setPage(PageTypes.UserSettings);
this.notifyNewScreen('settings');
break;
@ -441,7 +445,6 @@ module.exports = React.createClass({
dis.dispatch({action: 'view_set_mxid'});
break;
}
Modal.createDialog(TextInputDialog, {
title: "Create Room",
description: "Room name (optional)",