mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use resumeSession to get email confirmation data

+3 -2
+3 -2
src/state/session/index.tsx
··· 466 466 const refreshSession = React.useCallback< 467 467 ApiContext['refreshSession'] 468 468 >(async () => { 469 - await agent.refreshSession() 469 + if (!currentAccount) return 470 + await agent.resumeSession(sessionAccountToAgentSession(currentAccount)!) 470 471 persistNextUpdate() 471 472 upsertAccount(agentToSessionAccount(agent)!) 472 473 setAgent(agent.clone()) 473 - }, [agent, setAgent, persistNextUpdate, upsertAccount]) 474 + }, [currentAccount, agent, setAgent, persistNextUpdate, upsertAccount]) 474 475 475 476 const selectAccount = React.useCallback<ApiContext['selectAccount']>( 476 477 async (account, logContext) => {