summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 19:15:23 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-29 19:15:23 +0100
commita8e8d1d06c078de49711768357267cf4168999ea (patch)
treefa449b133e1780611f5de9c258c95a6cdf771492 /synapse/handlers/room.py
parentHave EventSource's get_new_events_for_user() API work only on keys within tha... (diff)
downloadsynapse-a8e8d1d06c078de49711768357267cf4168999ea.tar.xz
Renamed get_current_token_part to get_current_key
Diffstat (limited to 'synapse/handlers/room.py')
-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 ce15420bf4..c54e0f963b 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -472,7 +472,7 @@ class RoomEventSource(object):
     def get_new_events_for_user(self, user, from_key, limit):
         # We just ignore the key for now.
 
-        to_key = yield self.get_current_token_part()
+        to_key = yield self.get_current_key()
 
         events, end_key = yield self.store.get_room_events_stream(
             user_id=user.to_string(),
@@ -484,7 +484,7 @@ class RoomEventSource(object):
 
         defer.returnValue((events, end_key))
 
-    def get_current_token_part(self):
+    def get_current_key(self):
         return self.store.get_room_events_max_id()
 
     @defer.inlineCallbacks