Implement notifications

This commit is contained in:
Paul Frazee 2022-10-03 10:53:36 -05:00
parent b05a334dcb
commit c7d7e152a0
16 changed files with 456 additions and 81 deletions

View file

@ -38,6 +38,17 @@ export class RootStoreModel {
return res.data.did
}
async fetchStateUpdate() {
if (!this.session.isAuthed) {
return
}
try {
await this.me.fetchStateUpdate()
} catch (e) {
console.error('Failed to fetch latest state', e)
}
}
serialize(): unknown {
return {
session: this.session.serialize(),