Skip to content

Empty contact chat rename action is synced every time securejoin runs  #5705

@link2xt

Description

@link2xt

publicbots@testrun.org bot "pings" other bots by (re)scanning their securejoin setup-contact QR codes in a loop.

While investigating #5703 I noticed that msgs table is full of sync messages similar to this:

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":""}}}}

]}

This "contact rename" sync action generated over and over and looks like a bug. It seems to originate here:
https://github.com/deltachat/deltachat-core-rust/blob/8ddc05923be71c06f3853bb91b1c3bb2777388de/src/contact.rs#L650-L657
We can at least check that name is not empty before sending a sync message, but maybe wait for #5697 first because in create_ex name is not sanitized yet.

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions