diff options
author | Luke Barnard <lukebarnard1@users.noreply.github.com> | 2017-04-13 14:21:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 14:21:31 +0100 |
commit | 78f0ddbfadefd877b161094d467d4863bd8890f9 (patch) | |
tree | c3e0ed7ccb314c91486358398f6d9192527cf15a /synapse/server.py | |
parent | Merge pull request #2115 from matrix-org/erikj/dedupe_federation_repl (diff) | |
parent | Correct logic in is_event_after (diff) | |
download | synapse-78f0ddbfadefd877b161094d467d4863bd8890f9.tar.xz |
Merge pull request #2120 from matrix-org/luke/read-markers
Implement Read Marker API
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 6310152560..12754c89ae 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -48,6 +48,7 @@ from synapse.handlers.typing import TypingHandler from synapse.handlers.events import EventHandler, EventStreamHandler from synapse.handlers.initial_sync import InitialSyncHandler from synapse.handlers.receipts import ReceiptsHandler +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 @@ -133,6 +134,7 @@ class HomeServer(object): 'receipts_handler', 'macaroon_generator', 'tcp_replication', + 'read_marker_handler', ] def __init__(self, hostname, **kwargs): @@ -291,6 +293,9 @@ class HomeServer(object): def build_receipts_handler(self): return ReceiptsHandler(self) + def build_read_marker_handler(self): + return ReadMarkerHandler(self) + def build_tcp_replication(self): raise NotImplementedError() |