Merge pull request #1885 from PR0M3TH3AN/prioritize-user-lists-sync-13078957991563691909

Prioritize user lists syncing during login
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-28 11:45:57 -05:00
commit 96354bbcc1
1 file changed
+18
+18
View File
@@ -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 {