Improve session management

zio/stable
Paul Frazee 2022-12-12 14:39:02 -06:00
parent 693d6bfd0a
commit b32bf69be7
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ export class SessionModel {
clear() {
this.data = null
this.setOnline(false)
}
setState(data: SessionData) {
@ -201,6 +202,7 @@ export class SessionModel {
did: res.data.did,
})
this.configureApi()
this.setOnline(true, false)
this.rootStore.me.load().catch(e => {
console.error('Failed to fetch local user information', e)
})