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

Can update email settings

This commit is contained in:
Pierre HUBERT 2020-04-27 13:37:43 +02:00
parent 6ba89b6bd1
commit 991d7ec1ab
2 changed files with 12 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class GeneralSettings {
final UserPageVisibility pageVisibility;
final bool allowComments;
final bool allowPostsFromFriends;
final bool allowComunicEmails;
bool allowComunicEmails;
final bool publicFriendsList;
final String virtualDirectory;
final String personalWebsite;
@ -36,7 +36,7 @@ class GeneralSettings {
assert(pageVisibility != null),
assert(allowComments != null),
assert(allowPostsFromFriends != null),
assert(allowComunicEmails),
assert(allowComunicEmails != null),
assert(publicFriendsList != null),
assert(virtualDirectory != null),
assert(personalWebsite != null),

View File

@ -98,6 +98,16 @@ class __GeneralAccountSettingsBodyState
},
checkInput: (s) => s.length >= 3,
),
// Emails settings
SettingsTile.switchTile(
title: tr("Allow comunic to send emails"),
onToggle: (s) {
_settings.allowComunicEmails = s;
_updateSettings();
},
switchValue: _settings.allowComunicEmails,
),
];
}