Fixed Bug 69428: Zoom: Selector during a call opens in the root section

This commit is contained in:
Ilya Oleshko 2024-08-09 12:37:55 +03:00
parent 74d72b3b70
commit 4e7f4a3f88

View File

@ -246,6 +246,11 @@ const Sdk = ({
if (!frameConfig) return;
const selectorOpenRoot =
selectorType !== "userFolderOnly" &&
selectorType !== "roomsOnly" &&
!frameConfig?.id;
switch (mode) {
case "room-selector":
const cancelButtonProps = frameConfig?.showSelectorCancel
@ -294,7 +299,7 @@ const Sdk = ({
acceptButtonLabel={frameConfig?.acceptButtonLabel}
cancelButtonLabel={frameConfig?.cancelButtonLabel}
currentFolderId={frameConfig?.id}
openRoot={!frameConfig?.id}
openRoot={selectorOpenRoot}
descriptionText={formatsDescription[frameConfig?.filterParam] || ""}
/>
);