diff --git a/src/components/structures/SpaceRoomView.tsx b/src/components/structures/SpaceRoomView.tsx index 383524b738b..cc3bd22c298 100644 --- a/src/components/structures/SpaceRoomView.tsx +++ b/src/components/structures/SpaceRoomView.tsx @@ -906,21 +906,21 @@ export default class SpaceRoomView extends React.PureComponent { space={this.props.space} justCreatedOpts={this.props.justCreatedOpts} onFinished={(invite: boolean) => { - this.setState({ phase: invite ? Phase.PrivateInvite : Phase.PrivateExistingRooms }); + this.setState({ phase: invite ? Phase.PrivateCreateRooms : Phase.PrivateExistingRooms }); }} />; case Phase.PrivateInvite: return this.setState({ phase: Phase.PrivateCreateRooms })} + onFinished={() => this.setState({ phase: Phase.Landing })} />; case Phase.PrivateCreateRooms: return this.setState({ phase: Phase.Landing, firstRoomId })} + onFinished={(firstRoomId: string) => this.setState({ phase: Phase.PrivateInvite, firstRoomId })} />; case Phase.PrivateExistingRooms: return