diff options
author | Erik Johnston <erik@matrix.org> | 2021-04-15 14:13:45 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-04-15 14:13:45 +0100 |
commit | 68b9eb694f0896f11f0699a7e01bd7fb9210dba4 (patch) | |
tree | 3e05430849bf3bb4fb9bb4e7843da6a7ac63c7b5 /synapse/handlers/typing.py | |
parent | Remove the federation replication stream and associated commands (diff) | |
download | synapse-github/erikj/remove_send_queue.tar.xz |
Tidy up hs.get_federation_sender() calls github/erikj/remove_send_queue erikj/remove_send_queue
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r-- | synapse/handlers/typing.py | 4 |
1 files changed, 1 insertions, 3 deletions
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( |