summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-18 16:52:29 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-19 11:16:23 +0100
commit88f7482b92564930c4ee6d5b4c0f32050e1b2e6b (patch)
treea5c8e6a6b28788b65ab167a7f7413ab6e4f9c037 /synapse/handlers
parentImplement and test presence dropping of remote users (diff)
downloadsynapse-88f7482b92564930c4ee6d5b4c0f32050e1b2e6b.tar.xz
Perform the 'REST'-level tests of Presence against the real Presence handler as well, mocking out the datastore beneath it
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 73ec45c9cb..7e725d1027 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -383,7 +383,7 @@ class PresenceHandler(BaseHandler):
         logger.debug("Start polling for presence from %s", user)
 
         if target_user:
-            target_users = set(target_user)
+            target_users = set([target_user])
         else:
             presence = yield self.store.get_presence_list(
                 user.localpart, accepted=True