From 4fdd64799e2b08a2fcb387ab2595c88e383055a4 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Thu, 16 Mar 2023 12:11:14 +0000 Subject: Fix the portdb script --- synapse/_scripts/synapse_port_db.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/synapse/_scripts/synapse_port_db.py b/synapse/_scripts/synapse_port_db.py index 2c9cbf8b27..29a5ef4311 100755 --- a/synapse/_scripts/synapse_port_db.py +++ b/synapse/_scripts/synapse_port_db.py @@ -283,6 +283,13 @@ class MockHomeserver: def get_replication_notifier(self) -> ReplicationNotifier: return ReplicationNotifier() + def get_user_directory_handler(self) -> object: + class FakeUserDirectoryHandler: + def kick_off_remote_profile_refresh_process(self) -> None: + pass + + return FakeUserDirectoryHandler() + class Porter: def __init__( -- cgit 1.4.1