From 3cd159a63ea1e80c1ad09d452e71c886e76358ba Mon Sep 17 00:00:00 2001 From: litruv Date: Sun, 1 Nov 2026 04:01:33 +1100 Subject: [PATCH] Drop the redundant try around the render check fetch. --- src/app/pages/client/ClientNonUIFeatures.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index f8522209..7fc1a9f6 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -453,9 +453,7 @@ function MessageNotifications() { function BackgroundSyncSetup() { const mx = useMatrixClient(); // Try to make a simple fetch to verify component is rendering - try { - fetch('/_matrix/client/v3/sync', { method: 'HEAD' }).catch(() => {}); - } catch {} + fetch('/_matrix/client/v3/sync', { method: 'HEAD' }).catch(() => {}); useEffect(() => { console.log('BackgroundSyncSetup: Starting background sync for', mx.getUserId());