Skip to content

Commit

Permalink
use initial state to add bot_options to room on adding of bot
Browse files Browse the repository at this point in the history
  • Loading branch information
ggurdin committed Apr 22, 2024
1 parent 076bcea commit cfa457a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pages/new_group/new_group.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cfa457a

Please sign in to comment.