1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can change group members visibility settings

This commit is contained in:
2021-03-17 18:50:37 +01:00
parent bd548fe532
commit 6d1fc388d0
5 changed files with 24 additions and 2 deletions

View File

@ -88,6 +88,14 @@ class AboutGroupSection extends StatelessWidget {
? tr("Private group")
: tr("Open group"))),
),
// Group members visibility
ListTile(
leading: Icon(Icons.remove_red_eye),
title: Text(tr("Members list visibility")),
subtitle:
Text(group.isMembersListPublic ? tr("Public") : tr("Private")),
),
],
);
}

View File

@ -243,6 +243,16 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
_groupSettings.postCreationLevel = s;
_updateSettings();
}),
// Groups members list visibility
SettingsTile.switchTile(
title: tr("Make members list public"),
onToggle: (s) {
_groupSettings.isMembersListPublic = s;
_updateSettings();
},
switchValue: _groupSettings.isMembersListPublic,
)
],
);