This commit is contained in:
Christian Pauly 2021-04-09 16:50:17 +02:00
parent c505c50a99
commit 56e5c81d1c

View File

@ -23,8 +23,9 @@ class _NewGroupState extends State<NewGroup> {
? sdk.CreateRoomPreset.public_chat
: sdk.CreateRoomPreset.private_chat,
visibility: publicGroup ? sdk.Visibility.public : null,
roomAliasName:
publicGroup && controller.text.isNotEmpty ? controller.text : null,
roomAliasName: publicGroup && controller.text.isNotEmpty
? controller.text.trim().toLowerCase().replaceAll(' ', '_')
: null,
name: controller.text.isNotEmpty ? controller.text : null,
),
);