use initial state to add bot_options to room on adding of bot
This commit is contained in:
parent
076bcea553
commit
cfa457a803
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,10 @@ class NewGroupController extends State<NewGroup> {
|
|||
// content: {'url': avatarUrl.toString()},
|
||||
// ),
|
||||
// ],
|
||||
initialState: [
|
||||
if (addConversationBotKey.currentState?.addBot ?? false)
|
||||
addConversationBotKey.currentState!.botOptions.toStateEvent,
|
||||
],
|
||||
groupName: nameController.text,
|
||||
preset: sdk.CreateRoomPreset.publicChat,
|
||||
powerLevelContentOverride:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue