This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Historical state events from state_events_at_start
in the MSC2716 /batch_send
endpoint get pushed to an application service /transactions
#11241
Labels
A-Application-Service
Related to AS support
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
As discovered by @tulir, when using the MSC2716
/batch_send
endpoint, events specified instate_events_at_start
will come downincrementaland the application services/sync
/transactions
endpoints. Since this is historical state, it shouldn't be coming down the live pipe.We already have a Complement tests to ensure the historical messages don't come down incremental sync, but we should also do the same for the state events.
Relevant code
state_events_at_start
:synapse/handlers/room_batch.py#L213-L249
builder.internal_metadata.historical = True
:synapse/handlers/message.py#L608
backfilled = True
:synapse/handlers/message.py#L1526-L1530
The text was updated successfully, but these errors were encountered: