Merge pull request #4548 from pangeachat/add-plan-popup
When adding a plan to a course, don't ask users to go to existing course
This commit is contained in:
commit
c833c956d0
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class NewCoursePageState extends State<NewCoursePage> {
|
|||
final existingRoom =
|
||||
Matrix.of(context).client.getRoomByCourseId(course.uuid);
|
||||
|
||||
if (existingRoom == null) {
|
||||
if (existingRoom == null || widget.spaceId != null) {
|
||||
context.go(
|
||||
widget.spaceId != null
|
||||
? '/rooms/spaces/${widget.spaceId}/addcourse/${course.uuid}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue