diff options
author | Erik Johnston <erik@matrix.org> | 2015-07-16 18:18:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-07-16 18:18:36 +0100 |
commit | b6d4a4c6d883a4c3084938e11fc5bb654b5779e4 (patch) | |
tree | dbcdb1eb3459c5a53c7bdb8117d2aaee26332366 /synapse/streams/events.py | |
parent | Merge pull request #203 from matrix-org/erikj/room_creation_presets (diff) | |
parent | Docs (diff) | |
download | synapse-b6d4a4c6d883a4c3084938e11fc5bb654b5779e4.tar.xz |
Merge pull request #199 from matrix-org/erikj/receipts
Implement read receipts.
Diffstat (limited to 'synapse/streams/events.py')
-rw-r--r-- | synapse/streams/events.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/streams/events.py b/synapse/streams/events.py index dff7970bea..aaa3609aa5 100644 --- a/synapse/streams/events.py +++ b/synapse/streams/events.py @@ -20,6 +20,7 @@ from synapse.types import StreamToken from synapse.handlers.presence import PresenceEventSource from synapse.handlers.room import RoomEventSource from synapse.handlers.typing import TypingNotificationEventSource +from synapse.handlers.receipts import ReceiptEventSource class NullSource(object): @@ -43,6 +44,7 @@ class EventSources(object): "room": RoomEventSource, "presence": PresenceEventSource, "typing": TypingNotificationEventSource, + "receipt": ReceiptEventSource, } def __init__(self, hs): @@ -62,7 +64,10 @@ class EventSources(object): ), typing_key=( yield self.sources["typing"].get_current_key() - ) + ), + receipt_key=( + yield self.sources["receipt"].get_current_key() + ), ) defer.returnValue(token) |