summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-22 11:47:08 +0100
committerErik Johnston <erik@matrix.org>2018-08-22 11:47:08 +0100
commit2f141f4c41b0bd8d8802f558f3ab4017c51a1684 (patch)
tree8be9a64740b248673f9ccadaf407ded5160af121 /synapse/server.py
parentMerge branch 'rav/fix_gdpr_consent' into matrix-org-hotfixes (diff)
parentMerge pull request #3659 from matrix-org/erikj/split_profiles (diff)
downloadsynapse-2f141f4c41b0bd8d8802f558f3ab4017c51a1684.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py

index 26228d8c72..a6fbc6ec0c 100644 --- a/synapse/server.py +++ b/synapse/server.py
@@ -56,7 +56,7 @@ from synapse.handlers.initial_sync import InitialSyncHandler from synapse.handlers.message import EventCreationHandler, MessageHandler from synapse.handlers.pagination import PaginationHandler from synapse.handlers.presence import PresenceHandler -from synapse.handlers.profile import ProfileHandler +from synapse.handlers.profile import BaseProfileHandler, MasterProfileHandler from synapse.handlers.read_marker import ReadMarkerHandler from synapse.handlers.receipts import ReceiptsHandler from synapse.handlers.room import RoomContextHandler, RoomCreationHandler @@ -308,7 +308,10 @@ class HomeServer(object): return InitialSyncHandler(self) def build_profile_handler(self): - return ProfileHandler(self) + if self.config.worker_app: + return BaseProfileHandler(self) + else: + return MasterProfileHandler(self) def build_event_creation_handler(self): return EventCreationHandler(self)