diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2024-04-29 15:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 15:22:13 +0100 |
commit | b548f7803a9b7ba51a66d47ddb9bb69dce541a48 (patch) | |
tree | edf0a111f84a08464c6551c4d75e3667fa13c60b /synapse/handlers/relations.py | |
parent | Update tornado 6.2 -> 6.4 (#17131) (diff) | |
download | synapse-b548f7803a9b7ba51a66d47ddb9bb69dce541a48.tar.xz |
Add support for MSC4115 (#17104)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/handlers/relations.py')
-rw-r--r-- | synapse/handlers/relations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/relations.py b/synapse/handlers/relations.py index 931ac0c813..c5cee8860b 100644 --- a/synapse/handlers/relations.py +++ b/synapse/handlers/relations.py @@ -95,6 +95,7 @@ class RelationsHandler: self._event_handler = hs.get_event_handler() self._event_serializer = hs.get_event_client_serializer() self._event_creation_handler = hs.get_event_creation_handler() + self._config = hs.config async def get_relations( self, @@ -163,6 +164,7 @@ class RelationsHandler: user_id, events, is_peeking=(member_event_id is None), + msc4115_membership_on_events=self._config.experimental.msc4115_membership_on_events, ) # The relations returned for the requested event do include their @@ -608,6 +610,7 @@ class RelationsHandler: user_id, events, is_peeking=(member_event_id is None), + msc4115_membership_on_events=self._config.experimental.msc4115_membership_on_events, ) aggregations = await self.get_bundled_aggregations( |