Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Faster room joins: Send device list updates out to servers in partially joined rooms #13874

Merged
merged 5 commits into from
Sep 23, 2022

Commits on Sep 22, 2022

  1. Add get_partial_state_servers_at_join method

    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    ac0d2d4 View commit details
    Browse the repository at this point in the history
  2. Add get_current_hosts_in_room_partial_state_approximation method

    Add a variant of `get_current_hosts_in_room` that returns an
    approximation of the hosts in a room for partial state rooms.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    48a1796 View commit details
    Browse the repository at this point in the history
  3. Update get_current_hosts_in_room docstring

    Update the docstring for `get_current_hosts_in_room` to mention the
    blocking behaviour for rooms with partial state. Also document the order
    of returned hosts.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    3681eb4 View commit details
    Browse the repository at this point in the history
  4. Send device list updates out to servers in partially joined rooms

    Use the provided list of servers in the room from the `/send_join`
    response, since we will not know which users are in the room.  This
    isn't sufficient to ensure that all remote servers receive the right
    device list updates, since the `/send_join` response may be inaccurate
    or we may calculate the membership state of new users in the room
    incorrectly.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    2ae6fb9 View commit details
    Browse the repository at this point in the history
  5. Add newsfile

    Sean Quah committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    3fb74fd View commit details
    Browse the repository at this point in the history