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

@@ -1208,6 +1208,9 @@ impl MimeMessage {
}
msg_type
} else if filename == "multi-device-sync.json" {
if !context.get_config_bool(Config::SyncMsgs).await? {
return Ok(());
}
let serialized = String::from_utf8_lossy(decoded_data)
.parse()
.unwrap_or_default();