feat: reaction details are now paginated, and use reaction_groups #640
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces two important updates to reactions:
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)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:
stream-message-reactions
component in a custom component do the following:messageReactionCounts
input, and use themessageReactionGroups
insteadlatestReactions
input, the component no longer uses itcustomReactionClickHandler
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