summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 17:39:33 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 17:39:33 +0100
commit6dd50da54ea944610eb3836621c45a2d6b2a532b (patch)
tree9ba22386eb6b5bd82d16240095d2913424d9e4ca /synapse/handlers/typing.py
parentAvoid hardcoding names of individual stream token keys in its own implementat... (diff)
downloadsynapse-6dd50da54ea944610eb3836621c45a2d6b2a532b.tar.xz
Define a new event stream data source for typing notifications (currently null)
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index 9fab0ff37c..8a1e3dc5e8 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -145,3 +145,17 @@ class TypingNotificationHandler(BaseHandler):
             typing):
         # TODO(paul) steal this from presence.py
         pass
+
+
+class TypingNotificationEventSource(object):
+    def __init__(self, hs):
+        self.hs = hs
+
+    def get_new_events_for_user(self, user, from_token, limit):
+        return ([], 0)
+
+    def get_current_token_part(self):
+        return 0
+
+    def get_pagination_rows(self, user, pagination_config, key):
+        return ([], 0)