Skip to content

fix: resolve custom emoji shortcodes in DM messages#386

Merged
barrydeen merged 1 commit intomainfrom
fix/dm-emoji-rendering
Mar 31, 2026
Merged

fix: resolve custom emoji shortcodes in DM messages#386
barrydeen merged 1 commit intomainfrom
fix/dm-emoji-rendering

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Extract NIP-30 emoji tags from decrypted DM rumors and store in DmMessage.emojiMap for inline rendering
  • Pass per-message emoji map to RichContent so :shortcode: references render as images in DM bubbles
  • Capture custom emoji URLs from reaction rumors in DmReaction.emojiUrl for proper reaction chip rendering
  • Populate emoji map on locally-sent messages so own shortcodes render immediately

Test plan

  • Send a DM containing a custom emoji shortcode (e.g. :pepe:) — should render as an image inline
  • Receive a DM with custom emoji shortcodes — should render as images, not raw :shortcode: text
  • Send/receive custom emoji reactions on DMs — should show the emoji image in reaction chips
  • Verify standard unicode emoji reactions still work as before

Emoji shortcodes in DM messages were only rendered for reactions, not in
the message body itself. Extract NIP-30 emoji tags from the decrypted
rumor and pass them through to RichContent for inline rendering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@barrydeen barrydeen merged commit fca49b3 into main Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant