diff --git a/lib/pages/new_space/new_space.dart b/lib/pages/new_space/new_space.dart index d5e41410d..57462a698 100644 --- a/lib/pages/new_space/new_space.dart +++ b/lib/pages/new_space/new_space.dart @@ -198,18 +198,6 @@ class NewSpaceController extends State { if (capacity != null && space != null) { space.updateRoomCapacity(capacity); } - // If space has no parents, add welcome chat - String? newChatRoomId; - if (space?.pangeaSpaceParents.isEmpty ?? false) { - newChatRoomId = await Matrix.of(context).client.createGroupChat( - enableEncryption: false, - preset: sdk.CreateRoomPreset.publicChat, - // Welcome chat name is '[space name acronym]: Welcome Chat' - groupName: - '${nameController.text.trim().split(RegExp(r"\s+")).map((s) => s[0]).join()}: ${L10n.of(context)!.classWelcomeChat}', - ); - GoogleAnalytics.createChat(newChatRoomId); - } final Room? room = Matrix.of(context).client.getRoomById(spaceId); if (room == null) { @@ -221,14 +209,6 @@ class NewSpaceController extends State { return; } - if (newChatRoomId != null) { - room.setSpaceChild(newChatRoomId, suggested: true); - GoogleAnalytics.addParent( - newChatRoomId, - room.classCode, - ); - } - GoogleAnalytics.createClass(room.name, room.classCode); try { await room.invite(BotName.byEnvironment);