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 May 12, 2021
1 parent 32594fe commit 3e2ec0c
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 @@ -333,6 +333,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 3e2ec0c

Please sign in to comment.