Skip to content

Commit 4e21917

Browse files
committed
feat: enable sync messages by default
1 parent 939b4b2 commit 4e21917

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

deltachat-jsonrpc/typescript/test/basic.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ describe("basic tests", () => {
7979
accountId = await dc.rpc.addAccount();
8080
});
8181
it("should block and unblock contact", async function () {
82+
// Cannot send sync messages to self as we do not have a self address.
83+
await dc.rpc.setConfig(accountId, "sync_msgs", "0");
84+
8285
const contactId = await dc.rpc.createContact(
8386
accountId,
8487

python/src/deltachat/testplugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ def prepare_account_from_liveconfig(self, configdict) -> Account:
546546
configdict.setdefault("bcc_self", False)
547547
configdict.setdefault("mvbox_move", False)
548548
configdict.setdefault("sentbox_watch", False)
549+
configdict.setdefault("sync_msgs", False)
549550
ac.update_config(configdict)
550551
self._preconfigure_key(ac, configdict["addr"])
551552
return ac

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ pub enum Config {
302302
DownloadLimit,
303303

304304
/// Enable sending and executing (applying) sync messages. Sending requires `BccSelf` to be set.
305-
#[strum(props(default = "0"))]
305+
#[strum(props(default = "1"))]
306306
SyncMsgs,
307307

308308
/// Space-separated list of all the authserv-ids which we believe

src/test_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ impl TestContext {
377377
ctx.set_config(Config::SkipStartMessages, Some("1"))
378378
.await
379379
.unwrap();
380+
ctx.set_config(Config::SyncMsgs, Some("0")).await.unwrap();
380381

381382
Self {
382383
ctx,

0 commit comments

Comments
 (0)