Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • fractal fractal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 283
    • Issues 283
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • fractalfractal
  • Merge requests
  • !810

Sort room list by activity

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kai Hiller requested to merge V02460/fractal:room_sort into fractal-next Aug 06, 2021
  • Overview 26
  • Commits 6
  • Pipelines 7
  • Changes 5

Sorts the rooms in the sidebar by activity. Activity for this purpose is based on the greatest origin_server_ts field of any loaded message in that room. This information is provided via the Room::latest_change method.

If no event is loaded for a room, the kind-of-random, but stable ordering of the RoomList’s IndexMap is kept between rooms. When backfilling is implemented, this change will simply do The Right Thing™.

There are also three loosely-related refactoring/minor commits in this MR.

Fixes #798 (closed).

Edited Aug 06, 2021 by Kai Hiller
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: room_sort