Web:Files:Header: fix back to parent room

This commit is contained in:
TimofeyBoyko 2022-07-19 16:39:46 +03:00
parent e3aac59cb1
commit b19839cd9c

View File

@ -382,18 +382,16 @@ class SectionHeaderContent extends React.Component {
setIsLoading,
fetchRooms,
rootFolderType,
history,
setAlreadyFetchingRooms,
} = this.props;
setIsLoading(true);
const searchArea =
rootFolderType === FolderType.Rooms
? RoomSearchArea.Active
: RoomSearchArea.Archive;
setAlreadyFetchingRooms(true);
fetchRooms(searchArea, null)
fetchRooms(null, null)
.then(() => {
const filter = RoomsFilter.getDefault();
@ -536,6 +534,8 @@ export default inject(
fetchRooms,
activeFiles,
activeFolders,
setAlreadyFetchingRooms,
} = filesStore;
const {
@ -629,6 +629,8 @@ export default inject(
isRoomsFolder,
isArchiveFolder,
setAlreadyFetchingRooms,
};
}
)(