Merge pull request #6729 from matrix-org/t3chguy/fix/18762

Fix explore rooms button not working during space creation wizard
This commit is contained in:
Michael Telatynski 2021-09-03 16:18:25 +01:00 committed by GitHub
commit f7e491f713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -809,6 +809,11 @@ export default class SpaceRoomView extends React.PureComponent<IProps, IState> {
};
private onAction = (payload: ActionPayload) => {
if (payload.action === "view_room" && payload.room_id === this.props.space.roomId) {
this.setState({ phase: Phase.Landing });
return;
}
if (payload.action !== Action.ViewUser && payload.action !== "view_3pid_invite") return;
if (payload.action === Action.ViewUser && payload.member) {