mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-21 09:44:05 -04:00
Store ActionGenerator in HomeServer
This commit is contained in:
parent
72ed8196b3
commit
cafe659f72
5 changed files with 10 additions and 7 deletions
|
@ -20,7 +20,6 @@ from synapse.api.errors import AuthError, Codes, SynapseError
|
|||
from synapse.crypto.event_signing import add_hashes_and_signatures
|
||||
from synapse.events.utils import serialize_event
|
||||
from synapse.events.validator import EventValidator
|
||||
from synapse.push.action_generator import ActionGenerator
|
||||
from synapse.types import (
|
||||
UserID, RoomAlias, RoomStreamToken,
|
||||
)
|
||||
|
@ -54,7 +53,7 @@ class MessageHandler(BaseHandler):
|
|||
# This is to stop us from diverging history *too* much.
|
||||
self.limiter = Limiter(max_count=5)
|
||||
|
||||
self.action_generator = ActionGenerator(self.hs)
|
||||
self.action_generator = hs.get_action_generator()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def purge_history(self, room_id, event_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue