fix: blocking resumption should also use pds url
This commit is contained in:
@@ -410,13 +410,14 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||||||
isSessionDeactivated(account.accessJwt) || account.deactivated,
|
isSessionDeactivated(account.accessJwt) || account.deactivated,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (account.pdsUrl) {
|
||||||
|
agent.api.xrpc.uri = agent.pdsUrl = new URL(account.pdsUrl)
|
||||||
|
}
|
||||||
|
|
||||||
if (canReusePrevSession) {
|
if (canReusePrevSession) {
|
||||||
logger.debug(`session: attempting to reuse previous session`)
|
logger.debug(`session: attempting to reuse previous session`)
|
||||||
|
|
||||||
agent.session = prevSession
|
agent.session = prevSession
|
||||||
if (account.pdsUrl) {
|
|
||||||
agent.api.xrpc.uri = agent.pdsUrl = new URL(account.pdsUrl)
|
|
||||||
}
|
|
||||||
|
|
||||||
__globalAgent = agent
|
__globalAgent = agent
|
||||||
upsertAccount(account)
|
upsertAccount(account)
|
||||||
|
|||||||
Reference in New Issue
Block a user