From 377e6283a725a3db83a817d978705c4d8b105b56 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 29 Jan 2026 12:43:58 -0500 Subject: [PATCH] Remove duplicate block list load from app login --- js/app.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/js/app.js b/js/app.js index 8d3406cc..c30650ae 100644 --- a/js/app.js +++ b/js/app.js @@ -4311,21 +4311,6 @@ class Application { } }); - // Attempt to load blocks with a short timeout so we don't block the UI forever. - // If it times out, the UI will refresh reactively when the data arrives. - const blockLoadPromise = userBlocks.ensureLoaded(activePubkey); - const blockLoadTimeout = new Promise((resolve) => - setTimeout(resolve, 2000) - ); - try { - await Promise.race([blockLoadPromise, blockLoadTimeout]); - } catch (error) { - devLogger.warn( - "[Application] Block list load timed out or failed:", - error - ); - } - // Load subscriptions in the background to avoid blocking the main feed. subscriptions.ensureLoaded(activePubkey).catch((error) => { devLogger.warn(