mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Can set location & email visibility
This commit is contained in:
		@@ -164,6 +164,7 @@ class _GeneralAccountSettingsScreenState
 | 
			
		||||
          _updateSettings();
 | 
			
		||||
        },
 | 
			
		||||
        switchValue: _settings.allowPostsFromFriends,
 | 
			
		||||
        titleMaxLines: 2,
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
      // Make friends list public
 | 
			
		||||
@@ -176,6 +177,16 @@ class _GeneralAccountSettingsScreenState
 | 
			
		||||
        switchValue: _settings.publicFriendsList,
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
      // Make email address public
 | 
			
		||||
      SettingsTile.switchTile(
 | 
			
		||||
        title: tr("Make your email address public"),
 | 
			
		||||
        onToggle: (v) {
 | 
			
		||||
          _settings.publicEmail = v;
 | 
			
		||||
          _updateSettings();
 | 
			
		||||
        },
 | 
			
		||||
        switchValue: _settings.publicEmail,
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
      // Personal website
 | 
			
		||||
      TextEditSettingsTile(
 | 
			
		||||
        title: tr("Personal website URL (optional)"),
 | 
			
		||||
@@ -188,6 +199,18 @@ class _GeneralAccountSettingsScreenState
 | 
			
		||||
        allowEmptyValues: true,
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
      // Location
 | 
			
		||||
      TextEditSettingsTile(
 | 
			
		||||
        title: tr("Location (optional)"),
 | 
			
		||||
        currValue: _settings.location ?? "",
 | 
			
		||||
        onChanged: (v) {
 | 
			
		||||
          _settings.location = v;
 | 
			
		||||
          _updateSettings();
 | 
			
		||||
        },
 | 
			
		||||
        maxLength: srvConfig.accountInformationPolicy.maxLocationLength,
 | 
			
		||||
        allowEmptyValues: true,
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
      // Public notes
 | 
			
		||||
      TextEditSettingsTile(
 | 
			
		||||
        title: tr("Public note (optional)"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user