Room list: hide the empty/collapse icon when the room list is empty (#33814)

* fix: don't display the empty/collapse icon when the room list is empty

* Fix jest lcov projectRoot config

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Florian Duros
2026-06-11 13:01:32 +00:00
committed by GitHub
co-authored by Michael Telatynski
parent 2d24778214
commit add7d4c405
3 changed files with 24 additions and 4 deletions
@@ -699,7 +699,7 @@ function computeSections(
...section,
rooms: isSectionExpanded(section.tag) ? section.rooms : [],
}));
const isFlatList = sections.length === 1 && sections[0].tag === CHATS_TAG;
const isFlatList = sections.length === 0 || (sections.length === 1 && sections[0].tag === CHATS_TAG);
return { sections, isFlatList };
}