summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-27 15:33:52 +0100
committerErik Johnston <erik@matrix.org>2014-08-27 15:33:52 +0100
commitbfe9faad5abf429b7023aaaeb3ba3200a75bf485 (patch)
tree42e4db7e5cb31fa888294c619badec80e3a73cb9 /synapse/handlers
parentConvert get_paginat_rows to use PaginationConfig. This allows people to suppl... (diff)
downloadsynapse-bfe9faad5abf429b7023aaaeb3ba3200a75bf485.tar.xz
Index sources in a nicer fashion.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index a32c22db33..faea30b44e 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -114,7 +114,7 @@ class MessageHandler(BaseHandler):
         """
         yield self.auth.check_joined_room(room_id, user_id)
 
-        data_source = self.hs.get_event_sources().sources[0]
+        data_source = self.hs.get_event_sources().sources["room"]
 
         if not pagin_config.from_token:
             pagin_config.from_token = yield self.hs.get_event_sources().get_current_token()
@@ -274,7 +274,7 @@ class MessageHandler(BaseHandler):
         now_token = yield self.hs.get_event_sources().get_current_token()
 
         # FIXME (erikj): Fix this.
-        presence_stream = self.hs.get_event_sources().sources[1]
+        presence_stream = self.hs.get_event_sources().sources["presence"]
         pagination_config = PaginationConfig(from_token=now_token)
         presence, _ = yield presence_stream.get_pagination_rows(
             user, pagination_config, None