fix navigation to room info in group view

This commit is contained in:
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") { if (payload.action === "view_right_panel_phase") {
this.setState({ this.setState({
phase: payload.phase, phase: payload.phase,
groupRoomId: payload.groupRoomId,
groupId: payload.groupId,
member: payload.member, member: payload.member,
}); });
} }

View file

@ -45,7 +45,7 @@ export default class GroupHeaderButtons extends HeaderButtons {
} else if (payload.action === "view_group") { } else if (payload.action === "view_group") {
this.setPhase(RightPanel.Phase.GroupMemberList); this.setPhase(RightPanel.Phase.GroupMemberList);
} else if (payload.action === "view_group_room") { } 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") { } else if (payload.action === "view_group_room_list") {
this.setPhase(RightPanel.Phase.GroupRoomList); this.setPhase(RightPanel.Phase.GroupRoomList);
} else if (payload.action === "view_group_member_list") { } else if (payload.action === "view_group_member_list") {