wire up editor component (somewhat hacky)

This commit is contained in:
Bruno Windels 2019-05-06 17:41:15 +02:00
parent 66aabdca9e
commit 6599d605cd
8 changed files with 222 additions and 0 deletions

View file

@ -402,6 +402,9 @@ const TimelinePanel = React.createClass({
if (payload.action === 'ignore_state_changed') {
this.forceUpdate();
}
if (payload.action === "edit_event") {
this.setState({editEvent: payload.event});
}
},
onRoomTimeline: function(ev, room, toStartOfTimeline, removed, data) {
@ -1244,6 +1247,7 @@ const TimelinePanel = React.createClass({
tileShape={this.props.tileShape}
resizeNotifier={this.props.resizeNotifier}
getRelationsForEvent={this.getRelationsForEvent}
editEvent={this.state.editEvent}
/>
);
},