fix pep8 and tests

pull/4/merge
Matthew Hodgson 7 years ago
parent 1bd40ca73e
commit 74e0cc74ce
  1. 2
      synapse/handlers/profile.py
  2. 1
      synapse/handlers/user_directory.py
  3. 1
      synapse/storage/user_directory.py

@ -194,7 +194,7 @@ class ProfileHandler(BaseHandler):
if self.hs.config.user_directory_search_all_users:
profile = yield self.store.get_profileinfo(target_user.localpart)
yield self.user_directory_handler.handle_local_profile_change(
target_user.user_id, profile
target_user.to_string(), profile
)
yield self._update_join_states(requester, target_user)

@ -423,7 +423,6 @@ class UserDirectoryHandler(object):
if not row:
yield self.store.add_profiles_to_user_dir(None, {user_id: profile})
@defer.inlineCallbacks
def _handle_new_user(self, room_id, user_id, profile):
"""Called when we might need to add user to directory

@ -640,7 +640,6 @@ class UserDirectoryStore(SQLBaseStore):
}
"""
if self.hs.config.user_directory_search_all_users:
join_clause = ""
where_clause = "?<>''" # naughty hack to keep the same number of binds

Loading…
Cancel
Save