feat: Replace Config::SendSyncMsgs with SyncMsgs (#4817)

And execute sync messages only if `Config::SyncMsgs` is enabled. Earlier executing was always
enabled, the messages are force-encrypted anyway. But for users it's probably more clear whether a
device is synchronised or not.
This commit is contained in:
iequidoo
2023-10-20 21:27:04 -03:00
committed by iequidoo
parent c89dd331f7
commit ccca12176e
5 changed files with 21 additions and 25 deletions

View File

@@ -297,10 +297,9 @@ pub enum Config {
#[strum(props(default = "0"))]
DownloadLimit,
/// Send sync messages, requires `BccSelf` to be set as well.
/// In a future versions, this switch may be removed.
/// Enable sending and executing (applying) sync messages. Sending requires `BccSelf` to be set.
#[strum(props(default = "0"))]
SendSyncMsgs,
SyncMsgs,
/// Space-separated list of all the authserv-ids which we believe
/// may be the one of our email server.
@@ -491,7 +490,7 @@ impl Context {
| Config::Configured
| Config::Bot
| Config::NotifyAboutWrongPw
| Config::SendSyncMsgs
| Config::SyncMsgs
| Config::SignUnencrypted
| Config::DisableIdle => {
ensure!(