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

Update comments on user page switch

This commit is contained in:
Pierre HUBERT 2020-04-27 18:51:54 +02:00
parent cf0708cd3b
commit 9e5decae61
2 changed files with 11 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class GeneralSettings {
String firstName;
String lastName;
UserPageVisibility pageVisibility;
final bool allowComments;
bool allowComments;
final bool allowPostsFromFriends;
bool allowComunicEmails;
final bool publicFriendsList;

View File

@ -156,6 +156,16 @@ class __GeneralAccountSettingsBodyState
_updateSettings();
},
),
// Allow comments on user page ?
SettingsTile.switchTile(
title: tr("Allow comments on your page"),
onToggle: (v) {
_settings.allowComments = v;
_updateSettings();
},
switchValue: _settings.allowComments,
),
];
}