Skip to content

Commit fb70422

Browse files
committed
add compativility layer for v2
1 parent 49677ea commit fb70422

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

client/src/client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,10 @@ export class Message<T> implements Omit<CoreMessage<T>, 'document' | 'policyPara
14101410
this.id = data.id
14111411
this._document = data.document
14121412
this.document = JSON.parse(data.document)
1413+
if ('author' in this.document) {
1414+
this.document.signer = (this.document as any).author
1415+
this.document.body = (this.document as any).value
1416+
}
14131417
this.authorProfile = {
14141418
ccid: this.author
14151419
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
]
3535
},
3636
"dependencies": {
37-
"@concrnt/client": "^0.0.23"
37+
"@concrnt/client": "^0.0.25"
3838
}
3939
}

pnpm-lock.yaml

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)