Actions buttons inside message content, HEIC support, and more
Highlights
Action Buttons and Links in Components
You can now use Action Buttons and Action Links inside message content in TalkJS Components. These let you execute custom code in your chat. As such, they’re perfect for quick-response actions, such as polls, approving requests, or marking items as done. When a user clicks a button or link, it triggers an onMessageAction event.
Support for HEIC and HEIF files
Users can now upload HEIC (High-Efficiency Image Codec) and HEIF (High Efficiency Image File) images. These files now display correctly throughout TalkJS, including in the chat, email notifications, and when sent via the REST API. HEIC/HEIF images offer high-quality, efficient compression and are increasingly used on iOS devices and modern cameras. With this update, users can share HEIC and HEIF images just like any other supported file type.
Overview of other changes
Added
- Components (0.0.29): Added support for content suppression.
- JavaScript Data API (1.6.0): Added TalkSession.setToken(token: string) which reauthenticates the session with a new token.
- JavaScript Data API (1.6.0): Added TalkSession.onNeedToken: () => void, which gets called whenever a new auth token is needed. To use refreshable auth tokens, set a callback that fetches a new auth token and passes it to
setToken. - Classic JavaScript SDK: Added support for programmatically jumping between search results. HighlightControls now exposes the methods
jumpUpandjumpDownto navigate to the previous or next matching message.
Changed
- JavaScript Data API (1.6.0): Initial token fetch is now delayed until you actually use the session to send a request, rather than happening as soon as you call
getTalkSession.
Deprecated
- JavaScript Data API (1.6.0): Deprecated
tokeningetTalkSession. Use TalkSession.setToken instead. - JavaScript Data API (1.6.0): Deprecated
tokenFetcheringetTalkSession. Use TalkSession.onNeedToken instead.
Fixed
- Components (0.0.29): Fixed an issue where, under certain conditions, editing a message could cause an error.
- Components (0.0.30): Fixed a content suppression bug that could cause the chatbox to crash.
- Classic JavaScript SDK: Fixed an issue where scrolling to a long message showed the bottom instead of the top of that message.
- Classic JavaScript SDK: Fixed an issue where content suppression wouldn’t correctly suppress link previews.
👋 Have questions or feedback? We’d love to hear from you. Get in touch.
✨ Follow TalkJS on LinkedIn, Bluesky or 𝕏 to stay up to date.
👩🏾💻 Want to work at TalkJS? Check out the open positions.