Fix issue

This commit is contained in:
2025-11-11 17:19:23 +01:00
parent 84c90ea033
commit 7925785c8b
2 changed files with 7 additions and 5 deletions

View File

@@ -175,12 +175,13 @@ impl MatrixClient {
log::warn!(
"Refresh token rejected by server, token must have been invalidated! {refresh_error}"
);
client
// TODO : resolve
/*client
.disconnect()
.await
.map_err(MatrixClientError::DisconnectUser)?;
.map_err(MatrixClientError::DisconnectUser)?;*/
}
return Err(MatrixClientError::InitialRefreshToken(refresh_error).into());
//return Err(MatrixClientError::InitialRefreshToken(refresh_error).into());
}
}

View File

@@ -34,6 +34,7 @@ export default function BaseAuthenticatedPage(): React.ReactElement {
const reloadUserInfo = async () => {
try {
loadingMessage.show("Refreshing user information...");
await loadUserInfo();
} catch (e) {
console.error(`Failed to load user information! ${e}`);
alert(`Failed to load user information! ${e}`);