Also run the user directory updating in the backgronud.

pull/8369/head
Patrick Cloke 2020-09-24 14:25:32 -04:00
parent 08a7d5d69b
commit 0d06a87c98
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class UserDirectoryHandler(StateDeltasHandler):
# Guard to ensure we only process deltas one at a time
self._is_processing = False
if self.update_user_directory:
if hs.config.run_background_tasks and self.update_user_directory:
self.notifier.add_replication_callback(self.notify_new_event)
# We kick this off so that we don't have to wait for a change before