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
,createInbox
andcreatePopup
.
Changed
- JavaScript SDK (0.25.0): Removed
UserData
from the Realtime API. Everything that previously returnedUserData
now 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.set
in 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.