From 2e14bc374581148069e82d89b9664cd20b993ea0 Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Tue, 21 Feb 2023 14:26:29 -0800 Subject: change callsites to reflect new function signature --- synapse/handlers/federation.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'synapse/handlers/federation.py') diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 1d0f6bcd6f..5371336529 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -993,6 +993,7 @@ class FederationHandler: ( event, unpersisted_context, + _, ) = await self.event_creation_handler.create_new_client_event( builder=builder ) @@ -1183,7 +1184,7 @@ class FederationHandler: }, ) - event, _ = await self.event_creation_handler.create_new_client_event( + event, _, _ = await self.event_creation_handler.create_new_client_event( builder=builder ) @@ -1236,9 +1237,10 @@ class FederationHandler: ( event, unpersisted_context, + _, ) = await self.event_creation_handler.create_new_client_event(builder=builder) - event_allowed, _ = await self.third_party_event_rules.check_event_allowed( + event_allowed, _, _ = await self.third_party_event_rules.check_event_allowed( event, unpersisted_context ) if not event_allowed: @@ -1413,6 +1415,7 @@ class FederationHandler: ( event, unpersisted_context, + _, ) = await self.event_creation_handler.create_new_client_event( builder=builder ) @@ -1495,6 +1498,7 @@ class FederationHandler: ( event, unpersisted_context, + _, ) = await self.event_creation_handler.create_new_client_event( builder=builder ) @@ -1577,6 +1581,7 @@ class FederationHandler: ( event, unpersisted_context, + _, ) = await self.event_creation_handler.create_new_client_event(builder=builder) EventValidator().validate_new(event, self.config) -- cgit 1.4.1