diff --git a/js/app.js b/js/app.js index 1b3ce27b..f0009251 100644 --- a/js/app.js +++ b/js/app.js @@ -4097,6 +4097,15 @@ class Application { this.resetViewLoggingState(); } + // Stop existing feed subscription to prioritize user data sync + if ( + this.videoSubscription && + typeof this.videoSubscription.unsub === "function" + ) { + this.videoSubscription.unsub(); + this.videoSubscription = null; + } + this.applyAuthenticatedUiState(); this.commentController?.refreshAuthState?.(); this.updateShareNostrAuthState({ reason: "auth-login" }); @@ -4279,6 +4288,15 @@ class Application { ); } } + + try { + await subscriptions.ensureLoaded(activePubkey); + } catch (error) { + devLogger.warn( + "[Application] Failed to load subscriptions during login:", + error, + ); + } } try {