Skip to content

"Unpublished" migration can lead to inconsistent state between devices #8052

@Hocuri

Description

@Hocuri

When updating to v2.46.0 or newer, the migration sets all relays but the primary one as unpublished.

If a second device is already updated and the relays there are "published", then this will lead to inconsistent state: The newly-updated device will have only the primary relay published, the secondary relay

The solution is to call send_sync_transports() after migrating.

@link2xt you said that you don't like the "high-level" migrations; how should we do this code-wise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions