Rename 'events_key' to 'room_key' so it matches the name of the event source

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-29 18:39:09 +01:00
parent 490f142d73
commit 4bfdec1eb2
4 changed files with 10 additions and 10 deletions

View file

@ -274,11 +274,11 @@ class MessageHandler(BaseRoomHandler):
messages, token = yield self.store.get_recent_events_for_room(
event.room_id,
limit=limit,
end_token=now_token.events_key,
end_token=now_token.room_key,
)
start_token = now_token.copy_and_replace("events_key", token[0])
end_token = now_token.copy_and_replace("events_key", token[1])
start_token = now_token.copy_and_replace("room_key", token[0])
end_token = now_token.copy_and_replace("room_key", token[1])
d["messages"] = {
"chunk": [m.get_dict() for m in messages],