summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers/presence.py')
-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