-
- Downloads
Consolidate logic for parsing relations. (#12693)
Parse the `m.relates_to` event content field (which describes relations) in a single place, this is used during: * Event persistence. * Validation of the Client-Server API. * Fetching bundled aggregations. * Processing of push rules. Each of these separately implement the logic and each made slightly different assumptions about what was valid. Some had minor / potential bugs.
Showing
- changelog.d/12693.misc 1 addition, 0 deletionschangelog.d/12693.misc
- synapse/events/__init__.py 45 additions, 0 deletionssynapse/events/__init__.py
- synapse/handlers/message.py 12 additions, 18 deletionssynapse/handlers/message.py
- synapse/handlers/relations.py 10 additions, 10 deletionssynapse/handlers/relations.py
- synapse/push/bulk_push_rule_evaluator.py 3 additions, 3 deletionssynapse/push/bulk_push_rule_evaluator.py
- synapse/storage/databases/main/events.py 21 additions, 28 deletionssynapse/storage/databases/main/events.py
- tests/rest/client/test_sync.py 6 additions, 2 deletionstests/rest/client/test_sync.py
Loading
Please register or sign in to comment