You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-26 04:01:04 +03:00
show RightPanel when people click on users
This commit is contained in:
@ -323,6 +323,20 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'view_user':
|
||||||
|
// FIXME: ugly hack to expand the RightPanel and then re-dispatch.
|
||||||
|
if (this.state.collapse_rhs) {
|
||||||
|
setTimeout(()=>{
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'show_right_panel',
|
||||||
|
});
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'view_user',
|
||||||
|
member: payload.member,
|
||||||
|
});
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'view_room':
|
case 'view_room':
|
||||||
// Takes either a room ID or room alias: if switching to a room the client is already
|
// Takes either a room ID or room alias: if switching to a room the client is already
|
||||||
// known to be in (eg. user clicks on a room in the recents panel), supply the ID
|
// known to be in (eg. user clicks on a room in the recents panel), supply the ID
|
||||||
|
Reference in New Issue
Block a user