diff --git a/matrixgw_backend/src/matrix_connection/matrix_client.rs b/matrixgw_backend/src/matrix_connection/matrix_client.rs index 3eca30f..c06f7a0 100644 --- a/matrixgw_backend/src/matrix_connection/matrix_client.rs +++ b/matrixgw_backend/src/matrix_connection/matrix_client.rs @@ -175,12 +175,13 @@ impl MatrixClient { log::warn!( "Refresh token rejected by server, token must have been invalidated! {refresh_error}" ); - client - .disconnect() - .await - .map_err(MatrixClientError::DisconnectUser)?; + // TODO : resolve + /*client + .disconnect() + .await + .map_err(MatrixClientError::DisconnectUser)?;*/ } - return Err(MatrixClientError::InitialRefreshToken(refresh_error).into()); + //return Err(MatrixClientError::InitialRefreshToken(refresh_error).into()); } } diff --git a/matrixgw_frontend/src/widgets/dashboard/BaseAuthenticatedPage.tsx b/matrixgw_frontend/src/widgets/dashboard/BaseAuthenticatedPage.tsx index 17d9f2a..338fda7 100644 --- a/matrixgw_frontend/src/widgets/dashboard/BaseAuthenticatedPage.tsx +++ b/matrixgw_frontend/src/widgets/dashboard/BaseAuthenticatedPage.tsx @@ -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}`);