mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-03 03:12:31 +00:00
Merge pull request #1885 from PR0M3TH3AN/prioritize-user-lists-sync-13078957991563691909
Prioritize user lists syncing during login
This commit is contained in:
1 file changed
+18
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user