diff --git a/packages/client/src/store/ContextOptionsStore.js b/packages/client/src/store/ContextOptionsStore.js index 308a95fdb5..47ca143125 100644 --- a/packages/client/src/store/ContextOptionsStore.js +++ b/packages/client/src/store/ContextOptionsStore.js @@ -1579,7 +1579,6 @@ class ContextOptionsStore { }; getGroupContextOptions = (t) => { - const { personal } = this.settingsStore; const { selection, allFilesIsEditing } = this.filesStore; const { setDeleteDialogVisible } = this.dialogsStore; const { isRecycleBinFolder, isRoomsFolder, isArchiveFolder } = @@ -1675,10 +1674,9 @@ class ContextOptionsStore { const hasDownloadAccess = selection.findIndex((k) => k.security.Download) !== -1; - const sharingItems = - selection.filter( - (k) => k.contextOptions.includes("sharing-settings") && k.canShare, - ).length && !personal; + const sharingItems = selection.filter( + (k) => k.contextOptions.includes("sharing-settings") && k.canShare, + ).length; const favoriteItems = selection.filter((k) => k.contextOptions.includes("mark-as-favorite"), diff --git a/packages/shared/store/SettingsStore.ts b/packages/shared/store/SettingsStore.ts index 130352629a..53b5ce3aaf 100644 --- a/packages/shared/store/SettingsStore.ts +++ b/packages/shared/store/SettingsStore.ts @@ -183,8 +183,6 @@ class SettingsStore { encryptionKeys: { [key: string]: string | boolean } = {}; - personal = false; - docSpace = true; roomsMode = false; @@ -536,7 +534,7 @@ class SettingsStore { newSettings = window.__ASC_INITIAL_EDITOR_STATE__.portalSettings; else newSettings = await api.settings.getSettings(true); - if (window.AscDesktopEditor !== undefined || this.personal) { + if (window.AscDesktopEditor !== undefined) { const dp = combineUrl(window.DocSpaceConfig?.proxy?.url, MEDIA_VIEW_URL); this.setDefaultPage(dp); }