fix: Do not set public visibility for private groups
This commit is contained in:
parent
583bf5f2da
commit
b62d3b449f
1 changed files with 3 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class NewGroupController extends State<NewGroup> {
|
||||||
TextEditingController nameController = TextEditingController();
|
TextEditingController nameController = TextEditingController();
|
||||||
|
|
||||||
bool publicGroup = false;
|
bool publicGroup = false;
|
||||||
bool groupCanBeFound = true;
|
bool groupCanBeFound = false;
|
||||||
|
|
||||||
Uint8List? avatar;
|
Uint8List? avatar;
|
||||||
|
|
||||||
|
|
@ -43,7 +43,8 @@ class NewGroupController extends State<NewGroup> {
|
||||||
void setCreateGroupType(Set<CreateGroupType> b) =>
|
void setCreateGroupType(Set<CreateGroupType> b) =>
|
||||||
setState(() => _createGroupType = b.single);
|
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);
|
void setGroupCanBeFound(bool b) => setState(() => groupCanBeFound = b);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue