Fix link opening (#512)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user