summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-22 14:39:05 +0100
committerErik Johnston <erik@matrix.org>2017-06-22 14:39:05 +0100
commit24d894e2e2af50180be856690d18773c7a800aa3 (patch)
treeed58253ee91be17b8a32bb5f9f4d49bc2fbc41d8 /synapse
parentMerge branch 'master' into develop (diff)
downloadsynapse-24d894e2e2af50180be856690d18773c7a800aa3.tar.xz
Fix thinko in unhandled user spam
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/user_directory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index c7a3acafcb..9f0d3499e8 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -187,9 +187,9 @@ class UserDirectoyHandler(object):
         if is_public:
             yield self.store.add_users_to_public_room(
                 room_id,
-                user_ids=unhandled_users - self.initially_handled_users_in_public
+                user_ids=user_ids - self.initially_handled_users_in_public
             )
-            self.initially_handled_users_in_public != unhandled_users
+            self.initially_handled_users_in_public != user_ids
 
         # We now go and figure out the new users who share rooms with user entries
         # We sleep aggressively here as otherwise it can starve resources.