Home / Companies / Stream / Blog / Post Details
Content Deep Dive

Feature Announcement: Enforce Unique Reaction

Blog post from Stream

Post Details
Company
Date Published
Author
Matheus C.
Word Count
339
Language
English
Hacker News Points
-
Summary

Reactions in chat applications offer a quick way to interact, with different apps implementing them uniquely to suit their design intentions, such as Slack allowing multiple reactions per message and iMessage permitting only one. Stream Chat provides flexibility by introducing an optional parameter, enforce_unique, in its sendReaction function to accommodate both models. When set to true, this parameter mimics iMessage by replacing all previous reactions from a user on a message, whereas leaving it false or omitted follows Slack's approach of allowing multiple reactions. This feature enhances customization options for developers to align chat functionalities with specific app requirements, with further details available in the documentation.