Skip to content

Room List Summary API #306

@ara4n

Description

@ara4n

Somehow we've got this far without having an API which gives a minimal summary of all the rooms you are in - i.e. Room Avatar, Room Name, possibly room topic, possibly most recent message, possibly number of users, whether room is encrypted...

One way to do this could be to use /sync with a very very heavy filter (i.e. no room messages) - especially if combined with paginated sync (as per matrix-org/synapse#893).

Alternatively we could have yet another API, but you'd kinda hope that /sync was performant enough to make this work.

Edit: the use case for this would be to rapidly allow clients to display a room list at login without having to do a full initial sync. This could then be used in conjunction with 'paginated sync' to poll subsets of rooms for updates, as per the 'hybrid sync' proposal from https://docs.google.com/document/d/1qlcXWWTccC-vleHajmzMZWrbhtwnWyzhA7f92TkfWYU/edit. On thinking further about it, we probably don't need a new API at all, and we can stitch the different syncs together via their since tokens. However, we would need the paginated /sync API extensions for this to work.

N.B. this is unrelated to lazy loading members

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Client-ServerIssues affecting the CS APIenhancementA suggestion for a relatively simple improvement to the protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions