From cebec751bbb6d688089a94d4ac9d8e91f67b307e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 14 Sep 2026 14:45:21 -0700 Subject: The zap amounts in the new panels use the feature's own formatter. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR --- src/features/messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/messages.js b/src/features/messages.js index ce33a63..215a6c9 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -3519,7 +3519,7 @@ export function messagesFeature(ctx) { for (const z of zs) profileOf(z.pk); lines.push(line(h('span', { style: 'display:flex', html: I_ZAP }), h('div', { class: 'col', style: 'gap:4px;min-width:0' }, ...zs.slice(0, 24).map((z) => - person(z.pk, h('span', { class: 'note-who-sats' }, fmtAmount(z.sats) + ' ' + unitLabel() + person(z.pk, h('span', { class: 'note-who-sats' }, fmtSats(z.sats) + ' sats' + (z.text ? ' ยท ' + z.text : ''))))))); } for (const [emoji, set] of [...rm.entries()].sort((a, b) => b[1].size - a[1].size)) { @@ -5282,7 +5282,7 @@ export function messagesFeature(ctx) { return q.ev || null; } function notifLabel(x) { - if (x.what === 'zap') return t('alertZap', { sats: fmtAmount(x.sats) + ' ' + unitLabel() }); + if (x.what === 'zap') return t('alertZap', { sats: fmtSats(x.sats) + ' sats' }); if (x.what === 'react') return t('alertReact', { emoji: x.emoji }); if (x.what === 'boost') return t('alertBoost'); if (x.what === 'reply') return t('alertReply'); -- cgit v1.2.3