Subscribe to a user’s online status, and more
Subscribe to a user’s online status
You can now get and subscribe to real-time data on a user’s online status. TalkJS Core (1.4.0) now has UserRef.subscribeOnline
, which subscribes to a user's online status. Real-time user online status data allows you to build anything from custom chat headers to online members’ lists.
Overview of other changes
Added
- TalkJS Core (1.3.0): Added
TalkSession.subscribeConversations
, which returns a windowed subscription to your most recent active conversations.
Changed
- JavaScript SDK (0.40.1) and TalkJS Core (1.4.2): Changed
GenericFileBlock
fromsubtype?: undefined
tosubtype?: never
so that type narrowing works consistently when you check for subtype. - React Native SDK (0.15.0): A
Session
component now creates aUser
if a user doesn’t yet exist. This means that you no longer need to mount aConversationList
orChatbox
in order for the user to be created in the backend, but can do this with only theSession
component. - React Native SDK (0.15.0): Changed that every call to
getConversationBuilder()
returns a new object, even if the conversation ID already exists.
Fixed
- Fixed an issue where voice messages recorded outside of the chat UI (for example, sent via the REST API) weren’t displaying correctly.
- Fixed a bug in link suppressions. You can now selectively suppress certain links, instead of having to choose between suppressing either all or no links.
- TalkJS Core (1.4.1): Fixed an error that occurred when subscribing to a single conversation while already subscribed to all conversations, or vice versa.
- React Native SDK (0.15.0): Fixed an issue where
onNotificationPressed
didn’t work correctly on iOS when using Firebase for push notifications. - React Native SDK (0.15.0): Fixed a bug in iOS where sometimes the device token didn’t get registered.
Case study
👋 Thoughts? Questions? Get in touch.
✨ Follow TalkJS on LinkedIn, Bluesky or 𝕏 to stay up to date.
👩🏾💻 Come join TalkJS! Check out the jobs page.