chat.yakka.toggleReaction

Add or remove the viewer's reaction to a message. A reaction is a record in the viewer's own repo, so this creates or deletes one — there is no shared counter to increment, and the count a client renders is the appview's tally of records it has ingested.

Repository @yakka.chat did:plc:wpjoy2orkqq5m65vq7gg7liz namespace authority
Details · procedure
Kindprocedure
Authorityyakka.chat
Indexed

Procedure

procedure · POST

Input

application/json
Reference

Output

application/json
Reference

Errors

MessageNotFound

No description in schema.

ChannelForbidden

No description in schema.

#input

object

Properties

emoji

requiredstring
  • maxGraphemes: 8

uri

requiredstring · at-uri

#output

object

Properties

mine

requiredboolean

Whether the viewer now reacts with this emoji — the state after the toggle, so a client need not guess which way it went.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • React to a message with a single emoji.

  • Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.

  • Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.

  • Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.

  • Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.