Disable sliding sync proxy check for native support mode (#11936)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28217/head
parent
328de4e9c8
commit
50c58ec693
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue