project-robius / robrix

Robrix: a multi-platform Matrix chat client written in Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
107 stars 18 forks source link

Use `SelectedRoom` everywhere in the main content views #266

Closed kevinaboos closed 1 day ago

kevinaboos commented 1 day ago

This ensures that room names are always preserved and visible when switching between Desktop and Mobile-sized UI layouts via the AdaptiveView.

Ideally this shouldn't be necessary, and we should only ever need to store OwnedRoomIds in all of the MainDesktopUi fields. I also think this change might be eventually problematic because it'll be difficult to properly propagate a changed room name through all of the app-wide states.


In addition, this PR adjusts the width cutoffs/boundaries between Mobile and Desktop UI for the whole window, as well as for the RoomsSidebar.

This PR also removes the currently unused headers for other room types: People and Channels.

Closes #226