Skip to content

Commit

Permalink
Don't show empty RoomList accordions
Browse files Browse the repository at this point in the history
  • Loading branch information
mehtank committed Jan 4, 2022
1 parent 43f0e5a commit b226901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/RoomList.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ Sublist = React.memo ({sortedRooms, presenceByRoom, selected, selectRoom, model,
include
matching
, [sortedRooms, filter, search, (if search then presenceByRoom)]
return null unless subrooms.length

<Accordion defaultActiveKey={unless startClosed then '0'}
className={className}>
Expand Down

0 comments on commit b226901

Please sign in to comment.