synapse/changelog.d/12228.bugfix
Patrick Cloke 80e0e1f35e
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.
2022-03-18 17:15:45 +00:00

1 line
126 B
Text

Fix a bug introduced in v1.53.0 where an unnecessary query could be performed when fetching bundled aggregations for threads.