feat: Exclude empty rooms from !admin rooms list by default #1386
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1386
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nex/feat/admin-hide-empty-rooms"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hides empty/disconnected rooms from
!admin rooms listby defaultPull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
!admin rooms listby default@ -29,2 +30,4 @@}).then(|room_id| get_room_info(self.services, room_id)).then(|(room_id, total_members, name)| async move {let room_id2 = room_id.clone(); // this is so dumbThis feels wrong, but the compiler won't let me re-use the
room_idin the parameter if I borrow it foractive_local_users_in_room. Is there a more correct way?This is caused by local_members.len() being after room_id, so you're trying to move room_id out of the scope of the function while it's still doing osmething. Why rust can't deal with that I have no damn idea
!admin rooms listby default. #1388!admin rooms listby default. #138893ca1a52dc38bf1ccbcc