Add custom emojis, and more
Highlight
Add custom emojis
You can now add your own custom emojis to your chat š
Using theĀ customEmojis option, you can add images for emojis that your users can use in their messages, or as emoji reactions.
To add a custom emoji, specify an emoji name and aĀ url to the emoji image youād like to add. The emoji name must be unique, and must start and end with a colon, for example :coffee-mug:, :cool-doge: or :roomba-cat:. The image URL must be a URL to an image file, such as an SVG, GIF or PNG. The image itself can be any size, as long as itās square (that is, has the same width and height).Ā
You can then add your custom emojis when creating your chat UI, for example as follows:
customEmojis: {
Ā Ā ':coffee-mug:': { url: 'https://example.com/images/coffee-mug.png' },
Ā Ā ':roomba-cat:': { url: 'https://example.com/images/roomba-cat.gif' },
Ā Ā ':cool-doge:': { url: 'https://example.com/images/cool-doge.gif' },
Ā }Read more about custom emojis.
Overview of other changes
Added
- JavaScript SDK (0.24.0): Added support for subscribing to a user viaĀ UserRef.subscribe, which returns aĀ UserSubscription.
- JavaScript SDK (0.26.0): AddedĀ customEmojis setting to
createChatbox,createInboxandcreatePopup.
Changed
- JavaScript SDK (0.25.0): Removed
UserDatafrom the Realtime API. Everything that previously returnedUserDatanow returnsĀ UserSnapshot. - JavaScript SDK (0.25.0): Changed UserSnapshot.locale andĀ SetUserParams.role, so that these are now correctly marked as nullable.
Fixed
- Fixed a bug where
UserRef.setin the Realtime API would give an error if you didnāt specify a name. - Fixed an issue where, under certain conditions, you couldnāt add message translation for your preferred language.
New guides and tutorials ![]()
š Thoughts? Questions? Get in touch.
⨠Follow TalkJS on š and LinkedIn to stay up to date.
š©š¾āš» Weāre hiring! Check out our jobs page.