Add WIP post-thread view

This commit is contained in:
Paul Frazee 2022-07-20 15:00:37 -05:00
parent 19c694bc60
commit c712cbbfe2
14 changed files with 534 additions and 25 deletions

View file

@ -18,11 +18,18 @@ export class RootStoreModel {
constructor(public api: AdxClient) {
makeAutoObservable(this, {
api: false,
resolveName: false,
serialize: false,
hydrate: false,
})
}
async resolveName(didOrName: string) {
const userDb = this.api.mockDb.getUser(didOrName)
if (!userDb) throw new Error(`User not found: ${didOrName}`)
return userDb.did
}
serialize(): unknown {
return {
session: this.session.serialize(),