Show non-deltachat emails by default for new installations

This commit is contained in:
iequidoo
2023-02-09 22:39:22 -03:00
committed by iequidoo
parent 2a5fa9a0d3
commit 19d7632be0
12 changed files with 25 additions and 96 deletions

View File

@@ -49,7 +49,7 @@ pub enum ShowEmails {
impl Default for ShowEmails {
fn default() -> Self {
ShowEmails::Off // also change Config.ShowEmails props(default) on changes
ShowEmails::All // also change Config.ShowEmails props(default) on changes
}
}
@@ -244,7 +244,7 @@ mod tests {
#[test]
fn test_showemails_values() {
// values may be written to disk and must not change
assert_eq!(ShowEmails::Off, ShowEmails::default());
assert_eq!(ShowEmails::All, ShowEmails::default());
assert_eq!(ShowEmails::Off, ShowEmails::from_i32(0).unwrap());
assert_eq!(
ShowEmails::AcceptedContacts,