diff --git a/matrixgw_backend/src/matrix_connection/matrix_client.rs b/matrixgw_backend/src/matrix_connection/matrix_client.rs index c06f7a0..fa44e3d 100644 --- a/matrixgw_backend/src/matrix_connection/matrix_client.rs +++ b/matrixgw_backend/src/matrix_connection/matrix_client.rs @@ -61,10 +61,6 @@ enum MatrixClientError { DecodeStoredSession(serde_json::Error), #[error("Failed to restore stored session! {0}")] RestoreSession(matrix_sdk::Error), - #[error("Failed to disconnect user! {0}")] - DisconnectUser(anyhow::Error), - #[error("Failed to refresh access token! {0}")] - InitialRefreshToken(RefreshTokenError), #[error("Failed to parse auth redirect URL! {0}")] ParseAuthRedirectURL(url::ParseError), #[error("Failed to build auth request! {0}")] @@ -175,13 +171,9 @@ impl MatrixClient { log::warn!( "Refresh token rejected by server, token must have been invalidated! {refresh_error}" ); - // TODO : resolve - /*client - .disconnect() - .await - .map_err(MatrixClientError::DisconnectUser)?;*/ + } else { + log::warn!("Failed to refresh token! {refresh_error}"); } - //return Err(MatrixClientError::InitialRefreshToken(refresh_error).into()); } }