mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 19:34:52 -04:00
Store ActionGenerator in HomeServer
This commit is contained in:
parent
72ed8196b3
commit
cafe659f72
5 changed files with 10 additions and 7 deletions
|
@ -52,6 +52,7 @@ from synapse.handlers.read_marker import ReadMarkerHandler
|
|||
from synapse.http.client import SimpleHttpClient, InsecureInterceptableContextFactory
|
||||
from synapse.http.matrixfederationclient import MatrixFederationHttpClient
|
||||
from synapse.notifier import Notifier
|
||||
from synapse.push.action_generator import ActionGenerator
|
||||
from synapse.push.pusherpool import PusherPool
|
||||
from synapse.rest.media.v1.media_repository import MediaRepository
|
||||
from synapse.state import StateHandler
|
||||
|
@ -135,6 +136,7 @@ class HomeServer(object):
|
|||
'macaroon_generator',
|
||||
'tcp_replication',
|
||||
'read_marker_handler',
|
||||
'action_generator',
|
||||
]
|
||||
|
||||
def __init__(self, hostname, **kwargs):
|
||||
|
@ -299,6 +301,9 @@ class HomeServer(object):
|
|||
def build_tcp_replication(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def build_action_generator(self):
|
||||
return ActionGenerator(self)
|
||||
|
||||
def remove_pusher(self, app_id, push_key, user_id):
|
||||
return self.get_pusherpool().remove_pusher(app_id, push_key, user_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue