Disable sliding sync proxy check for native support mode (#11936)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2023-12-01 11:04:14 +00:00 committed by GitHub
parent 328de4e9c8
commit 50c58ec693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,8 +86,9 @@ export const SlidingSyncOptionsDialog: React.FC<{ onFinished(enabled: boolean):
const validProxy = withValidation<undefined, { error?: unknown }>({
async deriveData({ value }): Promise<{ error?: unknown }> {
if (!value) return {};
try {
await proxyHealthCheck(value!, MatrixClientPeg.safeGet().baseUrl);
await proxyHealthCheck(value, MatrixClientPeg.safeGet().baseUrl);
return {};
} catch (error) {
return { error };