aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js
index f98df3a..9745717 100644
--- a/src/features/messages.js
+++ b/src/features/messages.js
@@ -645,7 +645,13 @@ export function messagesFeature(ctx) {
if (!wallet.mnemonic && !wallet.xprv && !wallet.xpub) return;
profilesWarmed = true;
const cached = profilesDisk();
- for (const [pk, p] of Object.entries(cached)) if (!profiles.has(pk)) profiles.set(pk, p);
+ // (a row asked for before the cache opened — still loading, or a miss
+ // while offline — gives way to the remembered face; a kind 0 that
+ // really named nothing keeps its say)
+ for (const [pk, p] of Object.entries(cached)) {
+ const cur = profiles.get(pk);
+ if (!cur || (!cur.name && !cur.picture && !cur.eventAt)) profiles.set(pk, p);
+ }
// someone known to have no face paints their punk from the first frame,
// instead of a blank circle that turns into one when the relays answer
for (const [pk, t] of Object.entries(facelessDisk())) {