From 9ea670c6d4d058d3c842a413ad4ff668d94e63b3 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sat, 5 Sep 2020 23:48:11 +0400 Subject: [PATCH] Add error types to basic chat ext --- protocol-spec/basic-chats.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocol-spec/basic-chats.md b/protocol-spec/basic-chats.md index 99ea9fe..a2da6cb 100644 --- a/protocol-spec/basic-chats.md +++ b/protocol-spec/basic-chats.md @@ -15,6 +15,10 @@ This extension is intended for organizing chats between some entities. - Ratelimit system: disabled - Authorization: enabled +### 3.1. Error types + +- `urn:cadmium:chats:private:banned` - Sending messages to user is prohibited, because he banned the sender of current message + ## 4. Chat message types - `urn:cadmium:chats:message-types:general` - message with text and optional media @@ -65,7 +69,7 @@ This extension is intended for organizing chats between some entities. "from": "cadmium.org", "ok": false, "payload": { - "errID": "banned", + "errID": "urn:cadmium:chats:private:banned", "errText": "The user banned you" } }