fix navigation to room info in group view

pull/21833/head
Bruno Windels 2018-12-10 16:52:45 +01:00
parent 75925f6192
commit fb4a441341
2 changed files with 3 additions and 1 deletions

View File

@ -141,6 +141,8 @@ export default class RightPanel extends React.Component {
if (payload.action === "view_right_panel_phase") {
this.setState({
phase: payload.phase,
groupRoomId: payload.groupRoomId,
groupId: payload.groupId,
member: payload.member,
});
}

View File

@ -45,7 +45,7 @@ export default class GroupHeaderButtons extends HeaderButtons {
} else if (payload.action === "view_group") {
this.setPhase(RightPanel.Phase.GroupMemberList);
} else if (payload.action === "view_group_room") {
this.setPhase(RightPanel.Phase.GroupRoomInfo, {groupRoomId: payload.groupRoomId});
this.setPhase(RightPanel.Phase.GroupRoomInfo, {groupRoomId: payload.groupRoomId, groupId: payload.groupId});
} else if (payload.action === "view_group_room_list") {
this.setPhase(RightPanel.Phase.GroupRoomList);
} else if (payload.action === "view_group_member_list") {