You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Don't retry on terms error
This commit is contained in:
@@ -59,7 +59,11 @@ class ScalarAuthClient {
|
|||||||
if (!token) {
|
if (!token) {
|
||||||
return this.registerForToken();
|
return this.registerForToken();
|
||||||
} else {
|
} else {
|
||||||
return this._checkToken(token).catch(() => {
|
return this._checkToken(token).catch((e) => {
|
||||||
|
if (e instanceof TermsNotSignedError) {
|
||||||
|
// retrying won't help this
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
return this.registerForToken();
|
return this.registerForToken();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user