summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <seanq@matrix.org>2023-04-15 02:30:09 +0100
committerSean Quah <seanq@matrix.org>2023-04-15 02:52:42 +0100
commit06f9ababc4d17005a33de0f0536c633f9f6ca38a (patch)
tree57f3d79f2fc7791504d2bf89560e04cc599a3a44
parentDe-localpart `ProfileWorkerStore.set_profile_avatar_url()` (diff)
downloadsynapse-06f9ababc4d17005a33de0f0536c633f9f6ca38a.tar.xz
Fix stray write to `profiles` to set `full_user_id`
Signed-off-by: Sean Quah <seanq@matrix.org>
-rw-r--r--synapse/storage/databases/main/registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py
index 717237e024..676d03bb7e 100644
--- a/synapse/storage/databases/main/registration.py
+++ b/synapse/storage/databases/main/registration.py
@@ -2414,8 +2414,8 @@ class RegistrationStore(StatsStore, RegistrationBackgroundUpdateStore):
             # *obviously* the 'profiles' table uses localpart for user_id
             # while everything else uses the full mxid.
             txn.execute(
-                "INSERT INTO profiles(user_id, displayname) VALUES (?,?)",
-                (user_id_obj.localpart, create_profile_with_displayname),
+                "INSERT INTO profiles(full_user_id, user_id, displayname) VALUES (?,?,?)",
+                (user_id, user_id_obj.localpart, create_profile_with_displayname),
             )
 
         if self.hs.config.stats.stats_enabled: