Skip to content

Commit cfa457a

Browse files
committed
use initial state to add bot_options to room on adding of bot
1 parent 076bcea commit cfa457a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pages/new_group/new_group.dart

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ class NewGroupController extends State<NewGroup> {
114114
// content: {'url': avatarUrl.toString()},
115115
// ),
116116
// ],
117+
initialState: [
118+
if (addConversationBotKey.currentState?.addBot ?? false)
119+
addConversationBotKey.currentState!.botOptions.toStateEvent,
120+
],
117121
groupName: nameController.text,
118122
preset: sdk.CreateRoomPreset.publicChat,
119123
powerLevelContentOverride:

0 commit comments

Comments
 (0)