Also run the user directory updating in the backgronud.
parent
08a7d5d69b
commit
0d06a87c98
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue