mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Speed up initial load by only waiting for relays when we need them
This commit is contained in:
parent
14eaec1dde
commit
9a8f6f0222
@ -116,9 +116,9 @@
|
||||
})
|
||||
|
||||
onReady(() => {
|
||||
initializeRelayList().then(() => {
|
||||
ready = true
|
||||
})
|
||||
ready = true
|
||||
|
||||
initializeRelayList()
|
||||
|
||||
if (user.getProfile()) {
|
||||
loadAppData(user.getPubkey())
|
||||
|
@ -72,7 +72,8 @@
|
||||
})
|
||||
}
|
||||
|
||||
if (all(isNil, Object.values(currentRelays)) && isNil(customRelayUrl)) {
|
||||
// Wait for our relay list to load initially, then terminate when we've tried everything
|
||||
if (allRelays.length > 0 && all(isNil, Object.values(currentRelays)) && isNil(customRelayUrl)) {
|
||||
modal = "failure"
|
||||
customRelayUrl = ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user