diff options
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/generic_worker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py index 9eba101d0a..fb16059fac 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -105,6 +105,7 @@ from synapse.rest.client.v1.room import ( RoomSendEventRestServlet, RoomStateEventRestServlet, RoomStateRestServlet, + RoomTypingRestServlet, ) from synapse.rest.client.v1.voip import VoipRestServlet from synapse.rest.client.v2_alpha import groups, sync, user_directory @@ -464,6 +465,7 @@ class GenericWorkerServer(HomeServer): ProfileDisplaynameRestServlet(self).register(resource) ProfileRestServlet(self).register(resource) KeyUploadServlet(self).register(resource) + RoomTypingRestServlet(self).register(resource) sync.register_servlets(self, resource) events.register_servlets(self, resource) @@ -892,6 +894,8 @@ def start(config_options): config.send_federation = True config.server.handle_typing = False + if config.worker_app == "synapse.app.client_reader": + config.server.handle_typing = True synapse.events.USE_FROZEN_DICTS = config.use_frozen_dicts @@ -908,6 +912,8 @@ def start(config_options): "before", "startup", _base.start, ss, config.worker_listeners ) + ss.get_replication_streamer() + _base.start_worker_reactor("synapse-generic-worker", config) |