debug: add log before fetchProfiles call to verify it's being invoked

This commit is contained in:
Gigi
2025-11-02 21:42:07 +01:00
parent 5ce13c667d
commit 7ec2ddcceb

View File

@@ -174,6 +174,7 @@ export function useProfileLabels(content: string, relayPool?: RelayPool | null):
if (pubkeysToFetch.length > 0 && relayPool && eventStore) {
const pubkeysToFetchSet = new Set(pubkeysToFetch)
console.log(`[profile-labels] Fetching ${pubkeysToFetch.length} profiles from relays`)
console.log(`[profile-labels] Calling fetchProfiles with relayPool and ${pubkeysToFetch.length} pubkeys`)
fetchProfiles(relayPool, eventStore as unknown as IEventStore, pubkeysToFetch)
.then((fetchedProfiles) => {
console.log(`[profile-labels] Fetch completed, received ${fetchedProfiles.length} profiles`)