From 68b9eb694f0896f11f0699a7e01bd7fb9210dba4 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 15 Apr 2021 14:13:45 +0100 Subject: Tidy up hs.get_federation_sender() calls --- synapse/handlers/typing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'synapse/handlers/typing.py') diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index e22393adc4..c5b0e5707e 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -57,9 +57,7 @@ class FollowerTypingHandler: self.clock = hs.get_clock() self.is_mine_id = hs.is_mine_id - self.federation = None - if hs.should_send_federation(): - self.federation = hs.get_federation_sender() + self.federation = hs.get_federation_sender() if hs.config.worker.writers.typing != hs.get_instance_name(): hs.get_federation_registry().register_instance_for_edu( -- cgit 1.5.1