mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Can update email settings
This commit is contained in:
parent
6ba89b6bd1
commit
991d7ec1ab
@ -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),
|
||||
|
@ -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,
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user