Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-03-22 19:02:52 +0300
committerJoas Schilling <coding@schilljs.com>2022-03-23 10:40:28 +0300
commitacdbdb7838396ecdfe5a1069c2c0fc5d140bf881 (patch)
tree45e6a6f943b5b2674463c3a24036f781c0eaf486 /docs
parent5035644bb9e35b92736cce04cbde6e8c2b709842 (diff)
Instead of the offset based use lastKnownMessageId as for message
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/chat.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/chat.md b/docs/chat.md
index 210c1ea7a..2cd349c16 100644
--- a/docs/chat.md
+++ b/docs/chat.md
@@ -163,7 +163,7 @@ See [OCP\RichObjectStrings\Definitions](https://github.com/nextcloud/server/blob
field | type | Description
---|---|---
- `offset` | int | Offset parameter to get another chunk of chat messages
+ `lastKnownMessageId` | int | Serves as an offset for the query. The lastKnownMessageId for the next page is available in the `X-Chat-Last-Given` header.
`limit` | int | Number of chat messages with shares you want to get
* Response:
@@ -173,6 +173,12 @@ See [OCP\RichObjectStrings\Definitions](https://github.com/nextcloud/server/blob
+ `404 Not Found` When the conversation could not be found for the participant
+ `412 Precondition Failed` When the lobby is active and the user is not a moderator
+ - Header:
+
+ field | type | Description
+ ---|---|---
+ `X-Chat-Last-Given` | int | Offset (lastKnownMessageId) for the next page.
+
- Data:
Array of messages as defined in [Receive chat messages of a conversation](#receive-chat-messages-of-a-conversation)