summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-19 15:51:10 +0100
committerErik Johnston <erik@matrix.org>2014-08-19 15:51:10 +0100
commit5c00614aaba881c354cb9eecf024aa3a84838c4f (patch)
treee63fee2b71f7c86031996dfcb66b9537875bbe15 /synapse/handlers/presence.py
parentFix typo in merge conflict (diff)
downloadsynapse-5c00614aaba881c354cb9eecf024aa3a84838c4f.tar.xz
PresenceStreamData was expecting *_key to be ints
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 60684f17d7..319e3c7c81 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