From f44d6f299ac772ac5d324274c4a47188447f6ad9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 25 Nov 2024 10:12:28 +0100 Subject: [PATCH] undo API adjustments --- package-lock.json | 2 +- ui/package.json | 2 +- ui/src/attachment-element.ts | 4 ++-- ui/src/presence-app.ts | 1 + ui/src/room-view.ts | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 91ff1b9..97fc6a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8669,7 +8669,7 @@ } }, "ui": { - "version": "0.8.1", + "version": "0.8.2", "dependencies": { "@fontsource-variable/baloo-2": "5.0.19", "@fontsource-variable/noto-sans-sc": "^5.0.5", diff --git a/ui/package.json b/ui/package.json index cbab630..9fc5349 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "0.8.2", + "version": "0.8.3", "scripts": { "start": "vite --port $UI_PORT --clearScreen false", "build": "vite build", diff --git a/ui/src/attachment-element.ts b/ui/src/attachment-element.ts index 95ba5d5..d22acb2 100644 --- a/ui/src/attachment-element.ts +++ b/ui/src/attachment-element.ts @@ -48,7 +48,7 @@ export class AttachmentElement extends LitElement { this._error = 'Invalid URL'; return; } - this._assetInfo = await this._weaveClient.assets.assetInfo(weaveLocation.wal); + this._assetInfo = await this._weaveClient.assetInfo(weaveLocation.wal); this._wal = weaveLocation.wal; this._assetAppletInfo = this._assetInfo ? await this._weaveClient.appletInfo(this._assetInfo.appletHash) @@ -69,7 +69,7 @@ export class AttachmentElement extends LitElement { async openAsset() { if (this._wal) { - await this._weaveClient.openAsset(this._wal); + await this._weaveClient.openWal(this._wal); } } diff --git a/ui/src/presence-app.ts b/ui/src/presence-app.ts index c1036cb..0e59368 100644 --- a/ui/src/presence-app.ts +++ b/ui/src/presence-app.ts @@ -211,6 +211,7 @@ export class PresenceApp extends LitElement { return Promise.resolve(undefined); }, search: () => Promise.resolve([]), + bindAsset: () => Promise.resolve(), }; const weaveClient = await WeaveClient.connect(appletServices); this._weaveClient = weaveClient; diff --git a/ui/src/room-view.ts b/ui/src/room-view.ts index 6d6f1d3..aeedea2 100644 --- a/ui/src/room-view.ts +++ b/ui/src/room-view.ts @@ -1621,7 +1621,7 @@ export class RoomView extends LitElement { } async addAttachment() { - const wal = await this._weaveClient.assets.userSelectAsset(); + const wal = await this._weaveClient.userSelectWal(); console.log('Got WAL: ', wal); if (wal) { const newAttachment = await this.roomStore.client.createAttachment({