Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

incremental /sync may give incomplete results when rejoining a room #3305

Closed
@richvdh

Description

I rather hope this will get fixed when we make depth not be a thing, but:

  • incremental /sync looks for rooms you have joined since your previous sync
  • it does this by looking at your membership state in each room at your 'since' token (
    old_state_ids = yield self.get_state_at(room_id, since_token)
    ish), and looking for those that are not 'join'
  • however, get_state_at uses get_recent_events_for_room which returns the event with the greatest depth, so if somebody has been playing silly buggers with the depth, you may end up looking at a point in the graph where you were a member, even though at the point of the 'since' token you were not.

Metadata

Assignees

No one assigned

    Labels

    A-Syncdefects related to /syncS-MinorBlocks non-critical functionality, workarounds exist.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions