-
- Downloads
Sliding sync: don't fetch room summary for named rooms. (#17683)
For rooms with a name we can skip fetching a full room summary, as we don't need to calculate heroes, and instead just fetch the room counts directly. This also changes things to not return counts and heroes for non-joined rooms. For left/banned rooms we were returning zero values anyway, and for invite/knock rooms we don't really want to leak such information (even if some of is included in the stripped state).
Showing
- changelog.d/17683.misc 1 addition, 0 deletionschangelog.d/17683.misc
- synapse/handlers/sliding_sync/__init__.py 38 additions, 40 deletionssynapse/handlers/sliding_sync/__init__.py
- synapse/storage/_base.py 2 additions, 0 deletionssynapse/storage/_base.py
- synapse/storage/databases/main/roommember.py 27 additions, 10 deletionssynapse/storage/databases/main/roommember.py
- synapse/storage/databases/main/state.py 8 additions, 0 deletionssynapse/storage/databases/main/state.py
- synapse/storage/schema/main/delta/87/03_current_state_index.sql 19 additions, 0 deletions...e/storage/schema/main/delta/87/03_current_state_index.sql
- tests/rest/client/sliding_sync/test_rooms_meta.py 26 additions, 26 deletionstests/rest/client/sliding_sync/test_rooms_meta.py
Loading
Please register or sign in to comment