summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/user_directory.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 43e917c1a0..4b1b7df745 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -66,8 +66,8 @@ class UserDirectoyHandler(object):
 
                 yield self._handle_deltas(deltas)
 
-                max_stream_id = deltas[-1]["stream_id"]
-                yield self.store.update_user_directory_stream_pos(max_stream_id)
+                self.pos = deltas[-1]["stream_id"]
+                yield self.store.update_user_directory_stream_pos(self.pos)
 
     @defer.inlineCallbacks
     def _handle_room(self, room_id):
@@ -208,8 +208,6 @@ class UserDirectoyHandler(object):
         if event:
             hist_vis = event.content.get(key_name, None)
 
-        logger.info("prev: %r, new: %r", prev_hist_vis, hist_vis)
-
         if hist_vis == public_value and prev_hist_vis != public_value:
             defer.returnValue(True)
         elif hist_vis != public_value and prev_hist_vis == public_value: