WIP: Migrate to matrix-rust-sdk #111

Draft
pierre wants to merge 92 commits from migrate-to-matrix-sdk into master
Showing only changes of commit b10ec9ce92 - Show all commits

View File

@@ -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());
}
}