pass the RoomViewStore down with a prop instead of global var.
this will allow to have more than 1 RoomView further on
This commit is contained in:
parent
869c81eb90
commit
df8539d6bc
7 changed files with 32 additions and 30 deletions
|
@ -429,6 +429,7 @@ const LoggedInView = React.createClass({
|
|||
switch (this.props.page_type) {
|
||||
case PageTypes.RoomView:
|
||||
page_element = <RoomView
|
||||
roomViewStore={OpenRoomsStore.getCurrentRoomStore()}
|
||||
ref='roomView'
|
||||
autoJoin={this.props.autoJoin}
|
||||
onRegistered={this.props.onRegistered}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue