From 1c34bb343c47f6e200575bac967959656ae7becb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 10 Sep 2026 14:02:58 -0700 Subject: Zaps in chat, and a bolt + sats tally on chat messages, DMs and posts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chat and DM message sheets grow a ⚡ Zap item (not on your own messages), riding the same one-tap flow as a post zap — Ark first, Lightning fallback, the amount remembered from the first time. A chat message is a rumor with an id like any event, so the zap e-tags that id; the public receipt reveals nothing but the id. Every post row, chat bubble and DM shows how much it's been zapped as a little amber bolt + sats chip (1.2k / 21k / 1.5M), fed by the public receipts that e-tag it: NIP-57 kind 9735 (amount from the bolt11, the zap request's amount as fallback) and coinos' own Ark receipt, kind 9737 (network-checked). Summed per id, deduped by receipt; underlined when one of ours is in it. Ids are asked once each (batched per paint, 150 per REQ), and ONE live subscription follows the ~200 ids most recently on screen so a zap landing while you watch — yours included, rechecked at 4/12/30s — shows up without a reload. The tally chip is itself a zap button on others' messages. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01URmfo8VimCNkw6Y7JndYrv --- src/i18n.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index 9d4bf73..5016754 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -191,6 +191,8 @@ const STR = { msgAdmin: 'admin', msgEdited: '(edited)', msgReact: 'React', + msgZap: 'Zap', + zapTallyTitle: '{n} sats zapped', msgReply: 'Reply', profNewPost: 'New post', profYourProfile: 'Your profile', -- cgit v1.2.3