Web: Files: fixed info-panel for media files

This commit is contained in:
Nikita Gopienko 2024-02-28 12:55:31 +03:00
parent abf6b1b5e0
commit ca0605f1ff

View File

@ -198,8 +198,11 @@ class InfoPanelStore {
getViewItem = () => {
const isRooms = this.getIsRooms();
const pathname = window.location.pathname.toLowerCase();
const isMedia = pathname.indexOf("view") !== -1;
if (
isRooms &&
(isRooms || isMedia) &&
this.roomsView === infoMembers &&
!this.infoPanelSelectedItems[0]?.isRoom
) {