1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Can update "public friend list" parameter

This commit is contained in:
Pierre HUBERT 2020-04-27 19:01:30 +02:00
parent 38c1474d2e
commit cd355f84cc
2 changed files with 11 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class GeneralSettings {
bool allowComments;
bool allowPostsFromFriends;
bool allowComunicEmails;
final bool publicFriendsList;
bool publicFriendsList;
final String virtualDirectory;
final String personalWebsite;
final String publicNote;

View File

@ -178,6 +178,16 @@ class __GeneralAccountSettingsBodyState
},
switchValue: _settings.allowPostsFromFriends,
),
// Make friends list public
SettingsTile.switchTile(
title: tr("Make your friends list public"),
onToggle: (v) {
_settings.publicFriendsList = v;
_updateSettings();
},
switchValue: _settings.publicFriendsList,
),
];
}