mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 07:20:20 +00:00
Fix stray write to profiles
to set full_user_id
Signed-off-by: Sean Quah <seanq@matrix.org>
This commit is contained in:
parent
1a4f41b3de
commit
06f9ababc4
1 changed files with 2 additions and 2 deletions
|
@ -2414,8 +2414,8 @@ class RegistrationStore(StatsStore, RegistrationBackgroundUpdateStore):
|
||||||
# *obviously* the 'profiles' table uses localpart for user_id
|
# *obviously* the 'profiles' table uses localpart for user_id
|
||||||
# while everything else uses the full mxid.
|
# while everything else uses the full mxid.
|
||||||
txn.execute(
|
txn.execute(
|
||||||
"INSERT INTO profiles(user_id, displayname) VALUES (?,?)",
|
"INSERT INTO profiles(full_user_id, user_id, displayname) VALUES (?,?,?)",
|
||||||
(user_id_obj.localpart, create_profile_with_displayname),
|
(user_id, user_id_obj.localpart, create_profile_with_displayname),
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.hs.config.stats.stats_enabled:
|
if self.hs.config.stats.stats_enabled:
|
||||||
|
|
Loading…
Reference in a new issue