summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
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