From 0145dc5fa72f9ee7661e64188fc1758ce99e3d9d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 18 Mar 2026 15:27:35 +0000 Subject: [PATCH] Fixups --- synapse/app/admin_cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/app/admin_cmd.py b/synapse/app/admin_cmd.py index 55691afc48..838792e423 100644 --- a/synapse/app/admin_cmd.py +++ b/synapse/app/admin_cmd.py @@ -176,7 +176,7 @@ class FileExfiltrationWriter(ExfiltrationWriter): def write_invite( self, room_id: str, event: EventBase, state: StateMap[EventBase] ) -> None: - self.write_events(room_id, [FilteredEvent(event=event, membership=None)]) + self.write_events(room_id, [FilteredEvent.state(event)]) # We write the invite state somewhere else as they aren't full events # and are only a subset of the state at the event. @@ -192,7 +192,7 @@ class FileExfiltrationWriter(ExfiltrationWriter): def write_knock( self, room_id: str, event: EventBase, state: StateMap[EventBase] ) -> None: - self.write_events(room_id, [FilteredEvent(event=event, membership=None)]) + self.write_events(room_id, [FilteredEvent.state(event)]) # We write the knock state somewhere else as they aren't full events # and are only a subset of the state at the event.