mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Set room visibility on group creation
This commit is contained in:
parent
8eba2b2a1f
commit
ab5aea4caf
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user