fix: Set room visibility on group creation

This commit is contained in:
Christian Pauly 2023-02-03 08:05:44 +01:00
parent 8eba2b2a1f
commit ab5aea4caf

View File

@ -26,6 +26,8 @@ class NewGroupController extends State<NewGroup> {
context: context, context: context,
future: () async { future: () async {
final roomId = await client.createGroupChat( final roomId = await client.createGroupChat(
visibility:
publicGroup ? sdk.Visibility.public : sdk.Visibility.private,
preset: publicGroup preset: publicGroup
? sdk.CreateRoomPreset.publicChat ? sdk.CreateRoomPreset.publicChat
: sdk.CreateRoomPreset.privateChat, : sdk.CreateRoomPreset.privateChat,