summaryrefslogtreecommitdiff
path: root/docs/API/chats.md
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-04 15:05:01 +0100
committerlain <lain@soykaf.club>2020-11-04 15:05:01 +0100
commit329aa19c9f1175f915441c84689860155949bb08 (patch)
tree17a92069fdb2f49d2f82efdabf3bec1e20822508 /docs/API/chats.md
parent755f58168bb2b6b979c6f5d36f7eff56d2305911 (diff)
parentbc4d9c4ffc9ccd826220893a97ce695e4bb66f9d (diff)
downloadpleroma-329aa19c9f1175f915441c84689860155949bb08.tar.gz
pleroma-329aa19c9f1175f915441c84689860155949bb08.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into alexgleason/pleroma-restrict-domain
Diffstat (limited to 'docs/API/chats.md')
-rw-r--r--docs/API/chats.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/API/chats.md b/docs/API/chats.md
index aa6119670..f50144c86 100644
--- a/docs/API/chats.md
+++ b/docs/API/chats.md
@@ -116,6 +116,10 @@ The modified chat message
This will return a list of chats that you have been involved in, sorted by their
last update (so new chats will be at the top).
+Parameters:
+
+- with_muted: Include chats from muted users (boolean).
+
Returned data:
```json
@@ -173,11 +177,14 @@ Returned data:
"created_at": "2020-04-21T15:06:45.000Z",
"emojis": [],
"id": "12",
- "unread": false
+ "unread": false,
+ "idempotency_key": "75442486-0874-440c-9db1-a7006c25a31f"
}
]
```
+- idempotency_key: The copy of the `idempotency-key` HTTP request header that can be used for optimistic message sending. Included only during the first few minutes after the message creation.
+
### Posting a chat message
Posting a chat message for given Chat id works like this: