From 3fbf79a6c38ad26c0dc600c6bd813ebbd43e762b Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 6 Sep 2021 12:43:25 +0100 Subject: [PATCH] Fix mypy Looks like this got introduced since #10745 was forked by #10566. --- synapse/handlers/federation_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 43053d5a0db1..afeb2892dc5b 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -1031,7 +1031,7 @@ async def _handle_marker_event(self, origin: str, marker_event: EventBase): room_creator = create_event.content.get(EventContentFields.ROOM_CREATOR) if ( not room_version.msc2716_historical - or not self.hs.config.experimental.msc2716_enabled + or not self.config.experimental.msc2716_enabled or marker_event.sender != room_creator ): return