Reactions
Let users react to messages, posts, and comments, which are visible to others.
Reactions are the interactions that user can perform with message, post or comment. The interactions can be anything such as like, dislike, love etc. It's up to the client to determine the type of reactions.
Reaction Description
Name | Data Type | Description | Attributes |
|
| ID of a reaction | |
|
| ID of a document | |
|
| Type of document | |
|
| ID of the creator | |
|
| Name of reaction | ' |
|
| Date/time when a reaction is created |
Reaction Data
Each post, comment, message has a set of fields providing detailed info about reactions.
reactionsCount
- how many reactions the post hasmyReactions
- list of reactions you added to the postreactions
- map that tells how many reactions of a certain type a post has
Add Reaction
You can add any number of reactions to the given message. The addReaction
method accepts reaction name, where the reaction name is case sensitive, i.e "like" & "Like" are two different reactions.
Remove Reaction
You can remove any reactions added to the post. The removeReaction
method removes reaction name. Reaction name is case sensitive in this case too.
Query Reaction
You can query reactions using the queryReactions
method.
For more details about Reacting on a comment, refer Comment Query
Last updated