Room list: improve custom sections in Spaces (#33523)

* feat: display empty custom sections in the space where they were created

* test: update tests

* fix: room can't be drag in to a section if a section is created before

* fix: re-render issue when section is created
This commit is contained in:
Florian Duros
2026-05-27 11:43:59 +02:00
committed by GitHub
parent 1f305f1e10
commit abe383d996
7 changed files with 174 additions and 19 deletions
@@ -264,6 +264,8 @@ export function VirtualizedRoomListView({ vm, renderAvatar, onKeyDown }: Virtual
return (
<RoomListSectionHeaderView
// Stable key per section avoids a @dnd-kit registration race when a new section is inserted.
key={headerId}
vm={sectionHeaderVM}
isFocused={isFocused}
onFocus={onFocus}