aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-14 14:45:21 -0700
committerAdam Soltys <[email protected]>2026-09-14 14:45:21 -0700
commitcebec751bbb6d688089a94d4ac9d8e91f67b307e (patch)
tree606cfa6097f51d41679b45ac457f17ab600056f0
parent1b41cb2bbd206367e2dbb591ec0f478e018ae849 (diff)
downloadcoinosv3-cebec751bbb6d688089a94d4ac9d8e91f67b307e.tar.gz
coinosv3-cebec751bbb6d688089a94d4ac9d8e91f67b307e.zip
The zap amounts in the new panels use the feature's own formatter.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01QYJfZ4A1TDCEY4Foq3CApR
-rw-r--r--src/features/messages.js4
1 files 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');