chat.yakka.markRead
Advance the viewer's read marker for a channel. The marker is a `chat.yakka.readMarker` record in the viewer's own settings space (ADR 0017), so it follows them to any client rather than living in this appview's idea of them. Monotonic: a marker never moves backwards, so an out-of-order call from a second tab cannot un-read a channel.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | yakka.chat |
| Indexed |
Checks
Validunlimited-stringdefs.input.properties.channelNo maxLength, maxGraphemes or format limits this string.endpoint-output-undefineddefs.mainNo output is defined. Endpoints should define one, even an empty one.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"input": {
"properties": {
"channel": {
"type": "string"
},
"seq": {
"description": "The highest sequence the viewer has seen.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"channel",
"seq"
],
"type": "object"
},
"main": {
"description": "Advance the viewer's read marker for a channel. The marker is a `chat.yakka.readMarker` record in the viewer's own settings space (ADR 0017), so it follows them to any client rather than living in this appview's idea of them.\n\nMonotonic: a marker never moves backwards, so an out-of-order call from a second tab cannot un-read a channel.",
"errors": [
{
"name": "ChannelNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"ref": "#input",
"type": "ref"
}
},
"type": "procedure"
}
},
"id": "chat.yakka.markRead",
"lexicon": 1
}