mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-19 01:48:40 -04:00
When presence is enabled don't send over replication
This commit is contained in:
parent
7590e9fa28
commit
1e315017d3
2 changed files with 8 additions and 2 deletions
|
@ -886,6 +886,9 @@ class ReplicationFederationHandlerRegistry(FederationHandlerRegistry):
|
|||
def on_edu(self, edu_type, origin, content):
|
||||
"""Overrides FederationHandlerRegistry
|
||||
"""
|
||||
if not self.config.use_presence and edu_type == "m.presence":
|
||||
return
|
||||
|
||||
handler = self.edu_handlers.get(edu_type)
|
||||
if handler:
|
||||
return super(ReplicationFederationHandlerRegistry, self).on_edu(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue