From 5c00614aaba881c354cb9eecf024aa3a84838c4f Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 19 Aug 2014 15:51:10 +0100 Subject: [PATCH] PresenceStreamData was expecting *_key to be ints --- synapse/handlers/presence.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 60684f17d..319e3c7c8 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -689,6 +689,9 @@ class PresenceStreamData(StreamData): self.presence = hs.get_handlers().presence_handler def get_rows(self, user_id, from_key, to_key, limit, direction): + from_key = int(from_key) + to_key = int(to_key) + cachemap = self.presence._user_cachemap # TODO(paul): limit, and filter by visibility