Skip to content

Recreate user profile on account reactivation#19902

Open
m4us1ne wants to merge 1 commit into
element-hq:developfrom
m4us1ne:fix-reactivation-recreate-profile
Open

Recreate user profile on account reactivation#19902
m4us1ne wants to merge 1 commit into
element-hq:developfrom
m4us1ne:fix-reactivation-recreate-profile

Conversation

@m4us1ne

@m4us1ne m4us1ne commented Jul 1, 2026

Copy link
Copy Markdown

Pull Request Checklist

Fixes #19881

  • Pull request is based on the develop branch
  • Pull request includes a changelog file. The entry should:
    • Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from EventStore to EventWorkerStore.".
    • Use markdown where necessary, mostly for code blocks.
    • End with either a period (.) or an exclamation mark (!).
    • Start with a capital letter.
    • Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry.
  • Code style is correct (run the linters)

@m4us1ne m4us1ne requested a review from a team as a code owner July 1, 2026 11:45
@CLAassistant

CLAassistant commented Jul 1, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Erasing an account deletes its row from the profiles table. Reactivating
the account did not recreate it, leaving the user without a profile row,
which broke display name changes and invites.

Recreate a blank profile row on reactivation if one is missing, and make
create_profile idempotent so reactivating a non-erased user is a no-op.
@m4us1ne m4us1ne force-pushed the fix-reactivation-recreate-profile branch from a83c892 to 528715d Compare July 3, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GDPR-erased users break after re-activation in Synapse v1.150.0+

3 participants