From c90d0f3c600802b5b4b43959df5fd2d02f78012c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 15 Sep 2026 09:27:45 -0700 Subject: Custom emoji in chat: :shortcodes: render as pictures, packs sync with Vector. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A message from Vector says :pika_wave: and carries a NIP-30 ["emoji", code, url] tag for it; coinos showed the bare shortcode. Now the bubble shows the picture (in rooms, DMs, the feed and the public /chat page), a bubble that is only one to three of them shows them big, and a :code: reaction chip is a picture too. Sending: every :code: you type that resolves travels with its tag, so the other side renders it whether or not they hold the pack. Shortcodes come from packs you hold (NIP-51 kind 30030 sets) and from what you've seen in chat, so anyone can answer a :pika_wave: with one. The composer autocompletes on ":pi" (Tab/Enter takes the first), the reaction picker lists custom emoji first, and Vector's pack share link renders with an Add button; a pasted naddr works too. Packs live on your kind 10030 list — the one Vector reads and writes — so a pack added in either app appears in both. tools/emoji-test.js drives the real coinos room headlessly and checks all of the above. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01JuwQqNWtDJcxPWtEm9134z --- src/i18n.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index 6a51fef..84aa76b 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -202,6 +202,14 @@ const STR = { msgEmojiSearch: 'Search emoji…', msgEmojiMore: 'More reactions', msgEmojiNone: 'No match', + msgEmojiAddPack: 'Add an emoji pack', + msgEmojiPackHint: 'Paste a pack link or naddr…', + msgEmojiPackAdd: 'Add', + msgEmojiPackHave: 'Added', + msgEmojiPackRemove: 'Remove this pack', + msgEmojiPackAdded: 'Emoji pack added: {name}', + msgEmojiPackBad: "Couldn't find an emoji pack there", + msgEmojiPackLink: 'Emoji pack', msgEdited: '(edited)', msgReact: 'React', msgZap: 'Zap', -- cgit v1.2.3