Correctly return new token when returning events. Serialize events correctly.

This commit is contained in:
Erik Johnston 2014-08-15 15:28:54 +01:00
parent 114984a236
commit 01f089d9fb
5 changed files with 25 additions and 9 deletions

View file

@ -160,7 +160,7 @@ class EventStream(PaginationStream):
self.user_id, from_pkey, to_pkey, limit
)
chunk += event_chunk
chunk += [e.get_dict() for e in event_chunk]
next_ver.append(str(max_pkey))
defer.returnValue((chunk, EventStream.SEPARATOR.join(next_ver)))