mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 17:06:28 +03:00
feat: enable sync messages by default
This commit is contained in:
@@ -79,6 +79,9 @@ describe("basic tests", () => {
|
|||||||
accountId = await dc.rpc.addAccount();
|
accountId = await dc.rpc.addAccount();
|
||||||
});
|
});
|
||||||
it("should block and unblock contact", async function () {
|
it("should block and unblock contact", async function () {
|
||||||
|
// Cannot send sync messages to self as we do not have a self address.
|
||||||
|
await dc.rpc.setConfig(accountId, "sync_msgs", "0");
|
||||||
|
|
||||||
const contactId = await dc.rpc.createContact(
|
const contactId = await dc.rpc.createContact(
|
||||||
accountId,
|
accountId,
|
||||||
"example@delta.chat",
|
"example@delta.chat",
|
||||||
|
|||||||
@@ -546,6 +546,7 @@ class ACFactory:
|
|||||||
configdict.setdefault("bcc_self", False)
|
configdict.setdefault("bcc_self", False)
|
||||||
configdict.setdefault("mvbox_move", False)
|
configdict.setdefault("mvbox_move", False)
|
||||||
configdict.setdefault("sentbox_watch", False)
|
configdict.setdefault("sentbox_watch", False)
|
||||||
|
configdict.setdefault("sync_msgs", False)
|
||||||
ac.update_config(configdict)
|
ac.update_config(configdict)
|
||||||
self._preconfigure_key(ac, configdict["addr"])
|
self._preconfigure_key(ac, configdict["addr"])
|
||||||
return ac
|
return ac
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ pub enum Config {
|
|||||||
DownloadLimit,
|
DownloadLimit,
|
||||||
|
|
||||||
/// Enable sending and executing (applying) sync messages. Sending requires `BccSelf` to be set.
|
/// Enable sending and executing (applying) sync messages. Sending requires `BccSelf` to be set.
|
||||||
#[strum(props(default = "0"))]
|
#[strum(props(default = "1"))]
|
||||||
SyncMsgs,
|
SyncMsgs,
|
||||||
|
|
||||||
/// Space-separated list of all the authserv-ids which we believe
|
/// Space-separated list of all the authserv-ids which we believe
|
||||||
|
|||||||
@@ -377,6 +377,7 @@ impl TestContext {
|
|||||||
ctx.set_config(Config::SkipStartMessages, Some("1"))
|
ctx.set_config(Config::SkipStartMessages, Some("1"))
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
ctx.set_config(Config::SyncMsgs, Some("0")).await.unwrap();
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
ctx,
|
ctx,
|
||||||
|
|||||||
Reference in New Issue
Block a user