diff --git a/packages/app/src/Cache/UserCache.ts b/packages/app/src/Cache/UserCache.ts index d7ed2bdcb..3df176cdd 100644 --- a/packages/app/src/Cache/UserCache.ts +++ b/packages/app/src/Cache/UserCache.ts @@ -49,7 +49,6 @@ class UserProfileCache extends FeedCache { */ async update(m: MetadataCache) { const existing = this.getFromCache(m.pubkey); - const refresh = existing && existing.loaded < m.loaded; const updateType = (() => { if (!existing) { return "new_profile"; @@ -57,7 +56,7 @@ class UserProfileCache extends FeedCache { if (existing.created < m.created) { return "updated_profile"; } - if (refresh) { + if (existing && existing.loaded < m.loaded) { return "refresh_profile"; } return "no_change"; @@ -73,9 +72,8 @@ class UserProfileCache extends FeedCache { await svc.load(); m.zapService = svc.zapperPubkey; } catch { - console.debug("Failed to load LNURL for zapper pubkey", lnurl); + console.warn("Failed to load LNURL for zapper pubkey", lnurl); } - // ignored } }