Skip to content

RoomList: add back Favourites and Low Priority filters when sections are disabled#34162

Merged
florianduros merged 3 commits into
developfrom
florianduros/favourite-low-prio-filter
Jul 9, 2026
Merged

RoomList: add back Favourites and Low Priority filters when sections are disabled#34162
florianduros merged 3 commits into
developfrom
florianduros/favourite-low-prio-filter

Conversation

@florianduros

@florianduros florianduros commented Jul 7, 2026

Copy link
Copy Markdown
Member

closes #34147

When RoomList.showSections is off, the room list renders as a flat list with no way to isolate favourite or low-priority rooms. This brings back the Favourites and Low Priority primary filter chips (present before sections shipped) so those rooms can still be filtered. When sections are enabled the chips stay hidden, since sections already surface those rooms.

  • FilterId (shared-components): re-added "favourite" and "low_priority", restoring the original filter order.
  • RoomListPrimaryFilters: added the favourite / low_priority label cases plus the room_list|filters|* i18n strings.
  • RoomListViewModel: added both filters to filterKeyToIdMap; a new getVisibleFilterIds() omits them when sections are enabled. The VM now watches RoomList.showSections and, since toggling is rare, does a full reset on change — clears the active filter, refetches rooms, and recomputes the visible chips.
Screen.Recording.2026-07-07.at.12.22.34.mov

@florianduros florianduros added this pull request to the merge queue Jul 9, 2026
Merged via the queue into develop with commit f21a3f5 Jul 9, 2026
64 checks passed
@florianduros florianduros deleted the florianduros/favourite-low-prio-filter branch July 9, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Room-List T-Enhancement T-Feature Request to add a new feature which does not exist right now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sections: Add a toggle to preferences that hides Sections in the room list

4 participants