Skip to content

Commit

Permalink
fix attachments bug and cleanup debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jan 23, 2024
1 parent 8583e4c commit f5d572c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/AboutDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<svelte:window on:keydown={handleKeydown}/>

<sl-dialog label="Gamez!: UI v0.3.11 for DNA v0.2.x" bind:this={dialog} width={600} >
<sl-dialog label="Gamez!: UI v0.3.12 for DNA v0.2.x" bind:this={dialog} width={600} >
<div class="about">
<p>Gamez! is a demonstration Holochain app built by the Holochain Foundation.</p>
<p> <b>Developers:</b>
Expand Down
1 change: 0 additions & 1 deletion ui/src/boardList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export class BoardList {
if (this.weClient) {
board.workspace.tip.subscribe((tip)=>{
if (tip.status=="complete") {
console.log("FISH")
const tipRecord = tip.value
const tipB64 = encodeHashToBase64(tipRecord.entryHash)
const key = `${SeenType.Tip}:${board.hashB64}`
Expand Down
9 changes: 8 additions & 1 deletion ui/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ export function hrlWithContextToB64(hrl: HrlWithContext): HrlB64WithContext {
}

export function hrlB64WithContextToRaw(hrlB64: HrlB64WithContext): HrlWithContext {
let context: any
try {
context = JSON.parse(hrlB64.context)
} catch (e) {

}
return {
hrl: [decodeHashFromBase64(hrlB64.hrl[0]), decodeHashFromBase64(hrlB64.hrl[1])],
context: JSON.parse(hrlB64.context),
context,
};
}


export const hashEqual = (a:EntryHash, b:EntryHash) : boolean => {
if (!a || !b) {
return !a && !b
Expand Down
2 changes: 1 addition & 1 deletion we_dev/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"source": {
"type": "https",
"url": "https://github.com/holochain-apps/kando/releases/download/v0.8.16/kando.webhapp"
"url": "https://github.com/holochain-apps/kando/releases/download/v0.8.18/kando.webhapp"
}
}
]
Expand Down

0 comments on commit f5d572c

Please sign in to comment.