Skip to content

feat(ui): Room List should have a new sorter to put room with local event to the top #5365

@Hywan

Description

@Hywan

We want the room list to have a new sorter that puts all rooms with a local event/local echoes to the top of the list.

Technical challenge — A Room doesn't have a pointer to a RoomSendQueue, so it's not possible to connect the two in a room list sorter, at least not in a clean way. However, in #4112, we will store the LatestEvent in the RoomInfo for caching purposes. (This mechanism will already trigger a RoomList update.) We may abuse this to store a special information indicating it's a local event, and thus we will be able to implement such sorter.


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