Implement notifications
This commit is contained in:
parent
b05a334dcb
commit
c7d7e152a0
16 changed files with 456 additions and 81 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue