v5.2.0
5.2.0 (2024-09-16)
Features
- The SDK now relies on
message.reaction_groups
field which allows ordering existing reactions based onfirst_reaction_at
field (for example in the below screenshot the first reaction is 😮 because it was the first type of reaction a user added to the message)
- The SDK utilizes the new
queryReactions
endpoint which means the SDK can now retrieve all reactions of a message, not just the last 1200.
The SDK now requires a minimum version of [email protected]
The release is non-breaking, but the following fields are now deprecated, so you can make your customization future-proof by updating them:
- If you use the
stream-message-reactions
component in a custom component do the following:- Remove the
messageReactionCounts
input, and use themessageReactionGroups
instead - Remove the
latestReactions
input, the component no longer uses it
- Remove the
- If you have a custom
customReactionClickHandler
you should use themessageReactionsService.queryReactions
method to fetch reactions (this endpoint uses pagination as opposed tochannelService.getMessageReactions()
which only gets the last 1200 reactions). If you want to use some ready-made-components for the pagination, you can checkout thestream-user-list
andstream-paginated-list
components