@@ -113,7 +113,8 @@ def __init__(self, hs: "HomeServer"):
113
113
# Set of server names.
114
114
self ._is_refreshing_remote_profiles_for_servers : Set [str ] = set ()
115
115
116
- if self .update_user_directory :
116
+ # T2B: Disable user directory
117
+ if self .update_user_directory and False :
117
118
self .notifier .add_replication_callback (self .notify_new_event )
118
119
119
120
# We kick this off so that we don't have to wait for a change before
@@ -159,6 +160,11 @@ async def search_users(
159
160
160
161
def notify_new_event (self ) -> None :
161
162
"""Called when there may be more deltas to process"""
163
+
164
+ # T2B: Disable user directory
165
+ if True :
166
+ return
167
+
162
168
if not self .update_user_directory :
163
169
return
164
170
@@ -183,6 +189,10 @@ async def handle_local_profile_change(
183
189
# FIXME(#3714): We should probably do this in the same worker as all
184
190
# the other changes.
185
191
192
+ # T2B: Disable user directory
193
+ if True :
194
+ return
195
+
186
196
if await self .store .should_include_local_user_in_dir (user_id ):
187
197
await self .store .update_profile_in_user_dir (
188
198
user_id , profile .display_name , profile .avatar_url
@@ -192,6 +202,11 @@ async def handle_local_user_deactivated(self, user_id: str) -> None:
192
202
"""Called when a user ID is deactivated"""
193
203
# FIXME(#3714): We should probably do this in the same worker as all
194
204
# the other changes.
205
+
206
+ # T2B: Disable user directory
207
+ if True :
208
+ return
209
+
195
210
await self .store .remove_from_user_dir (user_id )
196
211
197
212
async def _unsafe_process (self ) -> None :
0 commit comments