Repository navigation
Use custom emoji from your other servers, where the server allows it (GRYT-1660) - #793
Merged
Merged
Conversation
…(GRYT-1660) The owner gets a switch under server settings, "Let members use custom emoji from their other servers", shown once the server knows the setting (server#280). When it's on, the chat picker lists each other server's emoji under that server's address, and picking one puts the image itself in the message, since its name only means something on its own server. Messages there then draw it; with the switch off they show its name. Reactions don't offer them: a reaction is stored by name. The name expansion now skips image markdown, so a server with an emoji of the same name can't rewrite the alt text inside one. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The client half of Gryt-chat/server#280. It's safe to merge first: an older server sends nothing, which reads as off and shows no switch.
What changes:
in the message, because the name only resolves on its own server.server:details. That way a message only re-renders when this answer changes. With the switch off, another server's emoji shows as:name:.:name:expansion now skips image markdown. Before, a server with an emoji of the same name would have rewritten the alt text inside another server's emoji image.Tested on a harness page: another server's emoji draws with the setting on and is text with it off, and an emoji of the same name on this server doesn't break it.
What to look at:
emojiDataonly knows hosts.🤖 Generated with Claude Code