Skip to content

Commit

Permalink
undo API adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Nov 25, 2024
1 parent a2ab22f commit f44d6f2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions ui/src/attachment-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
}

Expand Down
1 change: 1 addition & 0 deletions ui/src/presence-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/room-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f44d6f2

Please sign in to comment.