mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 12:45:03 -04:00
Add a module API to allow modules to edit push rule actions (#12406)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
d743b25c8f
commit
5ef673de4f
8 changed files with 319 additions and 104 deletions
|
@ -91,6 +91,7 @@ from synapse.handlers.presence import (
|
|||
WorkerPresenceHandler,
|
||||
)
|
||||
from synapse.handlers.profile import ProfileHandler
|
||||
from synapse.handlers.push_rules import PushRulesHandler
|
||||
from synapse.handlers.read_marker import ReadMarkerHandler
|
||||
from synapse.handlers.receipts import ReceiptsHandler
|
||||
from synapse.handlers.register import RegistrationHandler
|
||||
|
@ -810,6 +811,10 @@ class HomeServer(metaclass=abc.ABCMeta):
|
|||
def get_account_handler(self) -> AccountHandler:
|
||||
return AccountHandler(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_push_rules_handler(self) -> PushRulesHandler:
|
||||
return PushRulesHandler(self)
|
||||
|
||||
@cache_in_self
|
||||
def get_outbound_redis_connection(self) -> "ConnectionHandler":
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue