fix: Do not set public visibility for private groups

This commit is contained in:
Krille 2024-12-27 09:58:50 +01:00
parent 583bf5f2da
commit b62d3b449f
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -25,7 +25,7 @@ class NewGroupController extends State<NewGroup> {
TextEditingController nameController = TextEditingController();
bool publicGroup = false;
bool groupCanBeFound = true;
bool groupCanBeFound = false;
Uint8List? avatar;
@ -43,7 +43,8 @@ class NewGroupController extends State<NewGroup> {
void setCreateGroupType(Set<CreateGroupType> b) =>
setState(() => _createGroupType = b.single);
void setPublicGroup(bool b) => setState(() => publicGroup = b);
void setPublicGroup(bool b) =>
setState(() => publicGroup = groupCanBeFound = b);
void setGroupCanBeFound(bool b) => setState(() => groupCanBeFound = b);