From cfa457a803e782bce5838ef7d34f3a085ac5b91f Mon Sep 17 00:00:00 2001 From: Gabby Gurdin Date: Mon, 22 Apr 2024 13:45:59 -0400 Subject: [PATCH] use initial state to add bot_options to room on adding of bot --- lib/pages/new_group/new_group.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pages/new_group/new_group.dart b/lib/pages/new_group/new_group.dart index b4633ea7d9..16d4e2cdba 100644 --- a/lib/pages/new_group/new_group.dart +++ b/lib/pages/new_group/new_group.dart @@ -114,6 +114,10 @@ class NewGroupController extends State { // content: {'url': avatarUrl.toString()}, // ), // ], + initialState: [ + if (addConversationBotKey.currentState?.addBot ?? false) + addConversationBotKey.currentState!.botOptions.toStateEvent, + ], groupName: nameController.text, preset: sdk.CreateRoomPreset.publicChat, powerLevelContentOverride: