From d849a5da1f2f451189b7cef926b3be0241e30e1a Mon Sep 17 00:00:00 2001 From: Alexander Onnikov <Alexander.Onnikov@xored.com> Date: Tue, 24 Sep 2024 14:23:06 +0700 Subject: [PATCH] fix: remove workspace id from indexeddb document name (#6700) Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com> --- plugins/text-editor-resources/src/provider/indexeddb.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/text-editor-resources/src/provider/indexeddb.ts b/plugins/text-editor-resources/src/provider/indexeddb.ts index 9ce1f2a0d1..d2aab95863 100644 --- a/plugins/text-editor-resources/src/provider/indexeddb.ts +++ b/plugins/text-editor-resources/src/provider/indexeddb.ts @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. // -import { getMetadata } from '@hcengineering/platform' -import presentation from '@hcengineering/presentation' import { type Doc as YDoc } from 'yjs' import { IndexeddbPersistence } from 'y-indexeddb' @@ -26,11 +24,7 @@ export class IndexeddbProvider extends IndexeddbPersistence implements Provider readonly awareness: Awareness | null = null constructor (documentId: string, doc: YDoc) { - const workspaceId: string = getMetadata(presentation.metadata.WorkspaceId) ?? '' - - const name = `${workspaceId}/${documentId}` - - super(name, doc) + super(documentId, doc) this.loaded = new Promise((resolve) => { this.on('synced', resolve)