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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | yakka.chat |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"input": {
"properties": {
"emoji": {
"maxGraphemes": 8,
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"emoji"
],
"type": "object"
},
"main": {
"description": "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.",
"errors": [
{
"name": "MessageNotFound"
},
{
"name": "ChannelForbidden"
}
],
"input": {
"encoding": "application/json",
"schema": {
"ref": "#input",
"type": "ref"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "#output",
"type": "ref"
}
},
"type": "procedure"
},
"output": {
"properties": {
"mine": {
"description": "Whether the viewer now reacts with this emoji — the state after the toggle, so a client need not guess which way it went.",
"type": "boolean"
}
},
"required": [
"mine"
],
"type": "object"
}
},
"id": "chat.yakka.toggleReaction",
"lexicon": 1
}