mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-20 18:44:37 -04:00
Use direct references for some configuration variables (part 2) (#10812)
This commit is contained in:
parent
145c006ef7
commit
8c7a531e27
16 changed files with 51 additions and 45 deletions
|
@ -1237,7 +1237,7 @@ class FederationHandlerRegistry:
|
|||
self._edu_type_to_instance[edu_type] = instance_names
|
||||
|
||||
async def on_edu(self, edu_type: str, origin: str, content: dict) -> None:
|
||||
if not self.config.use_presence and edu_type == EduTypes.Presence:
|
||||
if not self.config.server.use_presence and edu_type == EduTypes.Presence:
|
||||
return
|
||||
|
||||
# Check if we have a handler on this instance
|
||||
|
|
|
@ -594,7 +594,7 @@ class FederationSender(AbstractFederationSender):
|
|||
destinations (list[str])
|
||||
"""
|
||||
|
||||
if not states or not self.hs.config.use_presence:
|
||||
if not states or not self.hs.config.server.use_presence:
|
||||
# No-op if presence is disabled.
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue