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

/messages?dir=f from a historical point to a /sync prev_batch returns a duplicate event (SYN-775) #1602

@matrixbot

Description

@matrixbot

If you have a batch of messages for a given room from /sync beginning at a certain prev_batch, then obtain an earlier token by requesting a previous batch using /messages?dir=b, and then request events from the resulting batch token back to the prev_batch from /sync using /messages?dir=f, you should receive the same set of events, assuming nothing weird got added to the event graph in the intervening time. Instead, the final event in the second set of events consistently duplicates the first event in the sync response.

(Imported from https://matrix.org/jira/browse/SYN-775)

(Reported by Benjamin Saunders)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Messages-Endpoint/messages client API endpoint (`RoomMessageListRestServlet`) (which also triggers /backfill)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions