diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-19 17:30:58 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-19 17:30:58 -0500 |
commit | 7a754850bc71a46f4b198e942b7427536b253587 (patch) | |
tree | 0be63117e521f95014689684f519085e3ccc5c2e /src/state/models/session.ts | |
parent | 6578d2bfadaa0aa937a5467973f4c44505634afe (diff) | |
download | voidsky-7a754850bc71a46f4b198e942b7427536b253587.tar.zst |
Go to whats-hot by default if you have no follows
Diffstat (limited to 'src/state/models/session.ts')
-rw-r--r-- | src/state/models/session.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state/models/session.ts b/src/state/models/session.ts index efd7a5fa8..e131b2b2c 100644 --- a/src/state/models/session.ts +++ b/src/state/models/session.ts @@ -154,13 +154,13 @@ export class SessionModel { /** * Sets the active session */ - setActiveSession(agent: AtpAgent, did: string) { + async setActiveSession(agent: AtpAgent, did: string) { this._log('SessionModel:setActiveSession') this.data = { service: agent.service.toString(), did, } - this.rootStore.handleSessionChange(agent) + await this.rootStore.handleSessionChange(agent) } /** @@ -304,7 +304,7 @@ export class SessionModel { return false } - this.setActiveSession(agent, account.did) + await this.setActiveSession(agent, account.did) return true } @@ -337,7 +337,7 @@ export class SessionModel { }, ) - this.setActiveSession(agent, did) + await this.setActiveSession(agent, did) this._log('SessionModel:login succeeded') } @@ -376,7 +376,7 @@ export class SessionModel { }, ) - this.setActiveSession(agent, did) + await this.setActiveSession(agent, did) this._log('SessionModel:createAccount succeeded') } |