Unread message counts, new preset themes and more
We've now added support for unread message counts! These appear next to each conversation's subject in the inbox, replacing the previous blue dot indicator for unread messages:
For more information on the counter and how to enable it in existing themes, see our docs on Adding new features to existing themes.
New preset themes
The new team_chat
preset theme
There are now three new preset themes to go with our existing default
and group_chat
themes:
- team_chat
: see this in action in our Team Chat demo
- default_dark
: see our Marketplace demo
- livestream
: see our Livestream demo
Passing data directly to a theme
The TalkJS JavaScript SDK now lets you pass data to your theme when you create a widget:
session.createChatBox({
theme: {
custom: {
productTitle: "Pink flip-flops",
accentColor: "#1A1ACF"
}
}
})
Variables you pass this way are also made available as CSS custom properties. So you could do something like this in your component's HTML and CSS:
{{theme.custom.productTitle}}
.productHeader {
background-color: var(--theme-accentColor)
}
Check out our documentation on passing data to themes to learn more.
Other improvements and fixes
- Fixed styling issues in Safari
- Fixed an issue where an ampersand in an HTML tag attribute within a theme could cause an error
- Fixed an issue where whitespace wasn't preserved in email templates
- Fixed an issue where TalkJS would crash when switching conversations while the reply bar was visible
- Fixed a crash related to the voice message recorder