-
Notifications
You must be signed in to change notification settings - Fork 459
Allow pinning rooms to the top of the room list #6466
Description
Your use case
What would you like to do?
Pin specific rooms so they always appear at the top of the room list, with the most recently pinned room first.
Why would you like to do it?
The Favourites filter hides everything that isn't a favourite when active. Pinning is a different thing: pinned rooms just stay at the top no matter what you're looking at. Filter by "People"? Your pinned DMs are at the top. Filter by "Rooms"? Your pinned groups are at the top. No filter? Still at the top. Favourites is about marking rooms you like, pinning is about keeping rooms you need right now always visible.
How would you like to achieve it?
Long-press a room and there's a "Pin to top" toggle in the context menu, right next to the Favourite toggle. You can also pin/unpin from the Room Details screen. Pinned rooms show a small pin icon next to the timestamp so you can tell at a glance. The most recently pinned room goes to the very top of the pinned ones. Storage is local per session using DataStore since the Matrix SDK doesn't support custom room tags.
Have you considered any alternatives?
Using the existing Favourites feature, but it's a filter (hides non-favourite rooms) not a sort modifier. The two serve different purposes and should coexist.
Additional context
No response
Are you willing to provide a PR?
Yes