Manage chat UI themes with the REST API, and more
Highlight
Manage themes with the REST API
You can now manage your chat UI themes using the TalkJS REST API. This includes the options to create, update, delete or export a theme. You can directly edit themes for your test environment. Once you’re happy with the updates, copy the changes to your live environment, and you’re all set.
Managing your themes through the REST API makes it easier to work with themes across multiple projects, or keep themes in your code base and update them when deploying.
Overview of other changes
Added
- Added an endpoint to the REST API that allows you to get a user's notification reply-to email address for a conversation. Any emails sent to that email address appear in the conversation as being sent by the user.
- JavaScript SDK (0.34.0): Added SendMessageParams that can be passed to
ConversationRef.send
to send a message by specifying its content directly. This allows you to send text messages with manually-specified formatting, in addition to file attachments and locations. - JavaScript SDK (0.34.0): Added EditMessageParams that can be passed to
MessageRef.edit
to edit a message by specifying its content directly. This allows you to edit text messages with manually-specified formatting, in addition to file attachments and locations. - JavaScript SDK (0.34.0): Added Session.uploadFile and file-subtype-specific variants. This returns a
FileToken
that you can use inSendMessageParams
orEditMessageParams
. - React Native SDK (0.12.0): Added the
customEmojis
prop toChatbox
andConversationList
. This prop adds a set of custom emoji images to the emoji picker, the emoji autocompleter, and emoji reactions. It allows users to send and receive custom emojis. - React Native SDK (0.12.0): Added
keyboardVerticalOffset
prop toChatbox
. This prop is basically identical to the one passed to KeyboardAvoidingView. The default value is90
. Note that thekeyboardVerticalOffset
prop is only used in iOS to fix an iOS bug. On Android, theKeyboardAvoidingView
component isn’t available.
Changed
- React Native SDK (0.12.1): Changed the default value for the
keyboardVerticalOffset
to95
.
Fixed
- Fixed an issue where user IDs weren’t sent correctly, which caused user mentions to break.
- Fixed an issue where user mentions would break when the user ID contained a pipe (
|
) character. - React Native SDK (0.12.1): Fixed a bug in iOS when New Architecture is enabled, where the whole UI would be scrollable when the keyboard is open.
- React Native SDK (0.12.0): Fixed a bug in iOS, where opening the keyboard would cause the
ChatHeader
or the top messages to get hidden. - React Native SDK (0.12.0): Fixed the
TypeError: _messageField.getTextResolver is not a function (it is undefined), js engine: hermes.
error. - React Native SDK (0.12.0): Fixed ref methods not working when called after a delay.
New tutorial
Send event invitations and other custom message types
Out of the box, TalkJS lets you send text, attachments and even voice clips, but what if you business has more specialized types of content to send? In this tutorial, TalkJS developer Frederik Creemers shows you a pattern to create a whole range of custom message types for your chat—from event invitations to payment requests, auction bids, and contact cards.
👋 Thoughts? Questions? Get in touch.
✨ Follow TalkJS on 𝕏 and LinkedIn to stay up to date.
👩🏾💻 Come work at TalkJS! Check out our jobs page.