From f3aeab91198e5619bc4f79014f9d7d23de402ae7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 10 Mar 2022 21:08:53 -0700 Subject: [PATCH] Don't send presence to matrix.org --- synapse/federation/sender/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py index a6cb3ba58f0b..6f91a785418f 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py @@ -695,6 +695,11 @@ def send_presence_to_destinations( for destination in destinations: if destination == self.server_name: continue + + # T2B: Skip sending presence to servers we know don't support it + if destination == "matrix.org": + continue + if not self._federation_shard_config.should_handle( self._instance_name, destination ):