Skip to content

When populating the user directory, query remote servers for user profiles instead of leaking the profiles in private rooms. [rei:userdirpriv] #15091

@matrixbot

Description

@matrixbot

This issue has been migrated from #15091.


Fixes: #5677

Follows: #14756

Base: rei/userdirpriv2_refresh_remotes

This pull request is commit-by-commit review friendly.

Original commit schedule, with full messages:

  1. Rename method to make obvious it only applies to local users

  2. Add another temporary table to the user directory background update for storing remote users needing lookup

  3. Don't add private remote users straight to the user directory
    Instead, queue them up to be added to the stale profile queue.

  4. Add a background update stage to sort the remote users into the stale profile queue as appropriate

  5. (ugly?) Kick off the fetching of remote profiles once ready

  6. When we start populating the user directory, clear out the old tables first if they're there

  7. When rebuilding user dir, schedule the new task

  8. Schedule a user directory rebuild

Stacked PR Chain: rei:userdirpriv

PR Title Status Merges Into
#14755 Preparatory work to fix the user directory assuming that any remote membership state events represent a profile change. -
#14756 Refresh remote profiles that have been marked as stale, in order to fill the user directory. #14755
#15091 👉 (Draft) When populating the user directory, query remote servers for user profiles instead of leaking the profiles in private rooms. #14756

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions