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:
ggurdin 2025-11-03 09:22:21 -05:00 committed by GitHub
commit c833c956d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}'