Fix link opening (#512)
This commit is contained in:
parent
af2fd3cf29
commit
2b96279103
2 changed files with 9 additions and 3 deletions
|
|
@ -119,12 +119,17 @@ export class RootStoreModel {
|
|||
/**
|
||||
* Called by the session model. Refreshes session-oriented state.
|
||||
*/
|
||||
async handleSessionChange(agent: BskyAgent) {
|
||||
async handleSessionChange(
|
||||
agent: BskyAgent,
|
||||
{hadSession}: {hadSession: boolean},
|
||||
) {
|
||||
this.log.debug('RootStoreModel:handleSessionChange')
|
||||
this.agent = agent
|
||||
this.me.clear()
|
||||
await this.me.load()
|
||||
resetNavigation()
|
||||
if (!hadSession) {
|
||||
resetNavigation()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue