Support auth-protected images

This commit is contained in:
Jon Staab
2025-04-28 15:46:48 -07:00
parent ccdd18a863
commit b5a28c71ad
6 changed files with 62 additions and 8 deletions
+4 -1
View File
@@ -41,6 +41,7 @@ import {
loadMutes,
loadFollows,
loadProfile,
loadRelaySelections,
loadInboxRelaySelections,
} from "@welshman/app"
import {createScroller} from "@lib/html"
@@ -384,7 +385,9 @@ export const listenForNotifications = () => {
return () => controller.abort()
}
export const loadUserData = (pubkey: string, relays: string[] = []) => {
export const loadUserData = async (pubkey: string, relays: string[] = []) => {
await Promise.race([sleep(3000), loadRelaySelections(pubkey, relays)])
const promise = Promise.race([
sleep(3000),
Promise.all([