Only fetch thread participation for events with threads. (#12228)
We fetch the thread summary in two phases: 1. The summary that is shared by all users (count of messages and latest event). 2. Whether the requesting user has participated in the thread. There's no use in attempting step 2 for events which did not return a summary from step 1.
Showing
- changelog.d/12228.bugfix 1 addition, 0 deletionschangelog.d/12228.bugfix
- synapse/storage/databases/main/relations.py 3 additions, 1 deletionsynapse/storage/databases/main/relations.py
- tests/rest/client/test_relations.py 271 additions, 238 deletionstests/rest/client/test_relations.py
- tests/server.py 14 additions, 6 deletionstests/server.py
Loading
Please register or sign in to comment