@@ -90,6 +90,7 @@ module.exports = React.createClass({
9090 RoomMemberList : 'RoomMemberList' ,
9191 GroupMemberList : 'GroupMemberList' ,
9292 GroupRoomList : 'GroupRoomList' ,
93+ GroupRoomInfo : 'GroupRoomInfo' ,
9394 FilePanel : 'FilePanel' ,
9495 NotificationPanel : 'NotificationPanel' ,
9596 RoomMemberInfo : 'RoomMemberInfo' ,
@@ -217,7 +218,7 @@ module.exports = React.createClass({
217218 } else if ( payload . action === "view_group_room" ) {
218219 this . setState ( {
219220 phase : this . Phase . GroupRoomInfo ,
220- groupRoom : payload . groupRoom ,
221+ groupRoomId : payload . groupRoomId ,
221222 } ) ;
222223 } else if ( payload . action === "view_group_room_list" ) {
223224 this . setState ( {
@@ -312,7 +313,7 @@ module.exports = React.createClass({
312313 analytics = { [ 'Right Panel' , 'Group Member List Button' , 'click' ] }
313314 /> ,
314315 < HeaderButton key = "_roomsButton" title = { _t ( 'Rooms' ) } iconSrc = "img/icons-room.svg"
315- isHighlighted = { this . state . phase === this . Phase . GroupRoomList }
316+ isHighlighted = { [ this . Phase . GroupRoomList , this . Phase . GroupRoomInfo ] . includes ( this . state . phase ) }
316317 clickPhase = { this . Phase . GroupRoomList }
317318 analytics = { [ 'Right Panel' , 'Group Room List Button' , 'click' ] }
318319 /> ,
@@ -349,9 +350,9 @@ module.exports = React.createClass({
349350 key = { this . state . member . user_id } /> ;
350351 } else if ( this . state . phase == this . Phase . GroupRoomInfo ) {
351352 panel = < GroupRoomInfo
352- groupRoom = { this . state . groupRoom }
353+ groupRoomId = { this . state . groupRoomId }
353354 groupId = { this . props . groupId }
354- key = { this . state . groupRoom . roomId } /> ;
355+ key = { this . state . groupRoomId } /> ;
355356 } else if ( this . state . phase == this . Phase . NotificationPanel ) {
356357 panel = < NotificationPanel /> ;
357358 } else if ( this . state . phase == this . Phase . FilePanel ) {
0 commit comments