Preparatory work to fix the user directory assuming that any remote membership...
Preparatory work to fix the user directory assuming that any remote membership state events represent a profile change. [rei:userdirpriv] (#14755) * Remove special-case method for new memberships only, use more generic method * Only collect profiles from state events in public rooms * Add a table to track stale remote user profiles * Add store methods to set and delete rows in this new table * Mark remote profiles as stale when a member state event comes in to a private room * Newsfile Signed-off-by:Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Simplify by removing Optionality of `event_id` * Replace names and avatars with None if they're set to dodgy things I think this makes more sense anyway. * Move schema delta to 74 (I missed the boat?) * Turns out these can be None after all --------- Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
Showing
- changelog.d/14755.bugfix 1 addition, 0 deletionschangelog.d/14755.bugfix
- synapse/handlers/user_directory.py 47 additions, 34 deletionssynapse/handlers/user_directory.py
- synapse/storage/databases/main/user_directory.py 40 additions, 0 deletionssynapse/storage/databases/main/user_directory.py
- synapse/storage/schema/main/delta/74/01_user_directory_stale_remote_users.sql 39 additions, 0 deletions...ma/main/delta/74/01_user_directory_stale_remote_users.sql
changelog.d/14755.bugfix
0 → 100644
Please register or sign in to comment