fix: preload
This commit is contained in:
parent
4f4649da2c
commit
d3873ea281
@ -52,14 +52,9 @@ async function initSite() {
|
||||
await initRelayWorker();
|
||||
}
|
||||
const login = LoginStore.takeSnapshot();
|
||||
db.ready = await db.isAvailable();
|
||||
if (db.ready) {
|
||||
preload(login.follows.item);
|
||||
}
|
||||
|
||||
updateRelayConnections(System, login.relays.item).catch(console.error);
|
||||
|
||||
setupWebLNWalletConfig(Wallets);
|
||||
|
||||
Relay.query([
|
||||
"REQ",
|
||||
"preload-social-graph",
|
||||
@ -76,6 +71,11 @@ async function initSite() {
|
||||
}
|
||||
});
|
||||
|
||||
db.ready = await db.isAvailable();
|
||||
if (db.ready) {
|
||||
await preload(login.follows.item);
|
||||
}
|
||||
|
||||
queueMicrotask(() => {
|
||||
for (const ev of UserCache.snapshot()) {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user