mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
remove dead commented code
This commit is contained in:
@@ -137,21 +137,9 @@ export async function getSFUConfigWithOpenID(
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger?.debug(`Failed fetching jwt with matrix 2.0 endpoint:`, e);
|
logger?.debug(`Failed fetching jwt with matrix 2.0 endpoint:`, e);
|
||||||
// Make this throw a hard error in case we force the matrix2.0 endpoint.
|
// Make this throw a hard error in case we force the matrix2.0 endpoint.
|
||||||
if (forceMatrix2Jwt) throw new NoMatrix2AuthorizationService(e as Error);
|
if (forceMatrix2Jwt) {
|
||||||
|
throw new NoMatrix2AuthorizationService(e as Error);
|
||||||
// if (e instanceof NotSupportedError) {
|
}
|
||||||
// logger?.warn(
|
|
||||||
// `Failed fetching jwt with matrix 2.0 endpoint (retry with legacy) Not supported`,
|
|
||||||
// e,
|
|
||||||
// );
|
|
||||||
// } else {
|
|
||||||
// logger?.warn(
|
|
||||||
// `Failed fetching jwt with matrix 2.0 endpoint other issues ->`,
|
|
||||||
// `(not going to try with legacy endpoint: forceOldJwtEndpoint is set to false, we did not get a not supported error from the sfu)`,
|
|
||||||
// e,
|
|
||||||
// );
|
|
||||||
// // NEVER get bejond this point if we forceMatrix2 and it failed!
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user