mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Can change group members visibility settings
This commit is contained in:
		@@ -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")),
 | 
			
		||||
          ),
 | 
			
		||||
        ],
 | 
			
		||||
      );
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
          )
 | 
			
		||||
        ],
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user