Disable sliding sync proxy check for native support mode (#11936)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
328de4e9c8
commit
50c58ec693
1 changed files with 2 additions and 1 deletions
|
@ -86,8 +86,9 @@ export const SlidingSyncOptionsDialog: React.FC<{ onFinished(enabled: boolean):
|
||||||
|
|
||||||
const validProxy = withValidation<undefined, { error?: unknown }>({
|
const validProxy = withValidation<undefined, { error?: unknown }>({
|
||||||
async deriveData({ value }): Promise<{ error?: unknown }> {
|
async deriveData({ value }): Promise<{ error?: unknown }> {
|
||||||
|
if (!value) return {};
|
||||||
try {
|
try {
|
||||||
await proxyHealthCheck(value!, MatrixClientPeg.safeGet().baseUrl);
|
await proxyHealthCheck(value, MatrixClientPeg.safeGet().baseUrl);
|
||||||
return {};
|
return {};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return { error };
|
return { error };
|
||||||
|
|
Loading…
Reference in a new issue