Skip to content

Commit

Permalink
Don't send presence to matrix.org
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Oct 6, 2022
1 parent 9b6a755 commit f3aeab9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/federation/sender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down

0 comments on commit f3aeab9

Please sign in to comment.