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 Jan 31, 2023
1 parent 534c2e6 commit 7363f39
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 @@ -721,6 +721,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 7363f39

Please sign in to comment.