deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
659 stars 85 forks source link

Sync messages are sent even if BccSelf is disabled #5703

Closed link2xt closed 3 months ago

link2xt commented 3 months ago

Documentation for SyncMsgs config says that sending requires that BccSelf is set: https://github.com/deltachat/deltachat-core-rust/blob/8ddc05923be71c06f3853bb91b1c3bb2777388de/src/config.rs#L317-L319

Same in deltachat.h. However publicbots@testrun.org bot which "pings" other bots by scanning their securejoin QR codes and has BCC-self disabled keeps sending messages to self. msgs table is full of messages like this sent to self:

This message is used to synchronize data between your devices.

👉 If you see this message in Delta Chat, please update your Delta Chat apps on all devices.||E={"items":[

{"timestamp":1718810737,"data":{"AlterChat":{"id":{"ContactAddr":"web2img@testrun.org"},"action":{"Rename":""}}}}

]}

Apparently this renaming of contact to "" happens every time Bob (the bot) scans securejoin QR code.

The issue is specifically about BccSelf not disabling sync messages as documented.

I have also opened related issue #5705 about the sync message contents.