summary refs log tree commit diff
path: root/synapse/rest/client/v1/initial_sync.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-06-04 01:16:01 +1000
committerAmber Brown <hawkowl@atleastfornow.net>2019-06-04 01:16:01 +1000
commit6f9f08005cd8973418662c716fec7c808e2cd0b2 (patch)
tree83af2f021f64c90003b94fce60f839a2bc6192aa /synapse/rest/client/v1/initial_sync.py
parentadd stuff in bg updates (diff)
parentMerge pull request #5307 from matrix-org/rav/server_keys/07-fix-notary-cache-... (diff)
downloadsynapse-6f9f08005cd8973418662c716fec7c808e2cd0b2.tar.xz
Merge remote-tracking branch 'origin/develop' into hawkowl/full-schema-v1
Diffstat (limited to 'synapse/rest/client/v1/initial_sync.py')
-rw-r--r--synapse/rest/client/v1/initial_sync.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/synapse/rest/client/v1/initial_sync.py b/synapse/rest/client/v1/initial_sync.py

index 3ead75cb77..0fe5f2d79b 100644 --- a/synapse/rest/client/v1/initial_sync.py +++ b/synapse/rest/client/v1/initial_sync.py
@@ -15,19 +15,19 @@ from twisted.internet import defer -from synapse.http.servlet import parse_boolean +from synapse.http.servlet import RestServlet, parse_boolean +from synapse.rest.client.v2_alpha._base import client_patterns from synapse.streams.config import PaginationConfig -from .base import ClientV1RestServlet, client_path_patterns - # TODO: Needs unit testing -class InitialSyncRestServlet(ClientV1RestServlet): - PATTERNS = client_path_patterns("/initialSync$") +class InitialSyncRestServlet(RestServlet): + PATTERNS = client_patterns("/initialSync$", v1=True) def __init__(self, hs): - super(InitialSyncRestServlet, self).__init__(hs) + super(InitialSyncRestServlet, self).__init__() self.initial_sync_handler = hs.get_initial_sync_handler() + self.auth = hs.get_auth() @defer.inlineCallbacks def on_GET(self, request):