TypingNotificationEventSource has to return proper tokens, not int 0

This commit is contained in:
Paul "LeoNerd" Evans 2014-08-29 19:00:45 +01:00
parent 4bfdec1eb2
commit 6797c7f1b1
1 changed files with 2 additions and 2 deletions

View File

@ -152,10 +152,10 @@ class TypingNotificationEventSource(object):
self.hs = hs self.hs = hs
def get_new_events_for_user(self, user, from_token, limit): def get_new_events_for_user(self, user, from_token, limit):
return ([], 0) return ([], from_token)
def get_current_token_part(self): def get_current_token_part(self):
return 0 return 0
def get_pagination_rows(self, user, pagination_config, key): def get_pagination_rows(self, user, pagination_config, key):
return ([], 0) return ([], pagination_config.from_token)