You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Actually render the right panel in the new system
This commit is contained in:
@ -580,6 +580,10 @@ export default createReactClass({
|
|||||||
profileForm: null,
|
profileForm: null,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'after_right_panel_phase_change':
|
||||||
|
// We don't keep state on the right panel, so just re-render to update
|
||||||
|
this.forceUpdate();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ export default class RightPanel extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onAction(payload) {
|
onAction(payload) {
|
||||||
if (payload.action === "view_right_panel_phase") {
|
if (payload.action === "after_right_panel_phase_change") {
|
||||||
this.setState({
|
this.setState({
|
||||||
phase: payload.phase,
|
phase: payload.phase,
|
||||||
groupRoomId: payload.groupRoomId,
|
groupRoomId: payload.groupRoomId,
|
||||||
|
@ -582,6 +582,10 @@ module.exports = createReactClass({
|
|||||||
|
|
||||||
onAction: function(payload) {
|
onAction: function(payload) {
|
||||||
switch (payload.action) {
|
switch (payload.action) {
|
||||||
|
case 'after_right_panel_phase_change':
|
||||||
|
// We don't keep state on the right panel, so just re-render to update
|
||||||
|
this.forceUpdate();
|
||||||
|
break;
|
||||||
case 'message_send_failed':
|
case 'message_send_failed':
|
||||||
case 'message_sent':
|
case 'message_sent':
|
||||||
this._checkIfAlone(this.state.room);
|
this._checkIfAlone(this.state.room);
|
||||||
|
Reference in New Issue
Block a user