feat: remove logic to expand a section when a filter is selected (#33785)
This commit is contained in:
@@ -205,16 +205,6 @@ export class RoomListViewModel
|
||||
// Update roomsMap immediately before clearing VMs
|
||||
this.updateRoomsMap(this.roomsResult);
|
||||
|
||||
// When a filter is toggled on, expand sections that have results so they're visible
|
||||
if (newFilter) {
|
||||
for (const section of this.roomsResult.sections) {
|
||||
if (section.rooms.length > 0) {
|
||||
const sectionHeaderVM = this.roomSectionHeaderViewModels.get(section.tag);
|
||||
if (sectionHeaderVM) sectionHeaderVM.isExpanded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.updateRoomListData();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user