Fix issue
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user