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/events.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/events.py')
-rw-r--r-- | synapse/handlers/events.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index c3fee74a98..09d553cff1 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -148,6 +148,7 @@ class EventHandler: def __init__(self, hs: "HomeServer"): self.store = hs.get_datastores().main self._storage_controllers = hs.get_storage_controllers() + self._config = hs.config async def get_event( self, @@ -189,7 +190,11 @@ class EventHandler: is_peeking = not is_user_in_room filtered = await filter_events_for_client( - self._storage_controllers, user.to_string(), [event], is_peeking=is_peeking + self._storage_controllers, + user.to_string(), + [event], + is_peeking=is_peeking, + msc4115_membership_on_events=self._config.experimental.msc4115_membership_on_events, ) if not filtered: |