Instead of listening for view_room, use a callback
But make sure that nothing other than the callback is done when RoomTile is clicked.
This commit is contained in:
parent
20fa36325f
commit
bf348a0f78
3 changed files with 22 additions and 22 deletions
|
@ -101,12 +101,8 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onClick: function() {
|
||||
dis.dispatch({
|
||||
action: 'view_room',
|
||||
room_id: this.props.room.roomId,
|
||||
});
|
||||
if (this.props.onClick) {
|
||||
this.props.onClick();
|
||||
this.props.onClick(this.props.room.roomId);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue