Implement notifications
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user