From cb9e1e55b91e44d998c15539df6a5b7b6dbc1b95 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Thu, 16 Jul 2026 23:42:22 +0300 Subject: [PATCH] Fix `test_sync_response_always_includes_the_user_themselves` --- synapse/storage/databases/main/profile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/storage/databases/main/profile.py b/synapse/storage/databases/main/profile.py index 2a52610396..af0daf55d1 100644 --- a/synapse/storage/databases/main/profile.py +++ b/synapse/storage/databases/main/profile.py @@ -876,6 +876,9 @@ class ProfileWorkerStore(SQLBaseStore): # No point writing an update for ourselves, if a membership change and no # other users interested return None + elif action == ProfileUpdateAction.UPDATE: + # Always include ourselves when updating field values + target_users.add(user_id.to_string()) # Record the profile update inserted_ts = self.clock.time_msec()