From aea7e57a954b4ff8474aa4a4f006fc9481780d9f Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sat, 5 Sep 2020 23:04:24 +0400 Subject: [PATCH] [Chats] Add message reply prop --- protocol-spec/private-chats.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol-spec/private-chats.md b/protocol-spec/private-chats.md index 0462943..9a99f5b 100644 --- a/protocol-spec/private-chats.md +++ b/protocol-spec/private-chats.md @@ -266,6 +266,7 @@ None. ```typescript interface SendMessagePayload { type: string; // the type of message + reply?: string; // message id on which this message is replying content: Content // the payload of message (depends on type) } ``` @@ -319,7 +320,8 @@ interface ReceiveMessagePayload { messageID: string; // the id of received message originServerTimestamp: number; // unix timestamp of received message on the origin server type: string; // the type of message - content: Content // the payload of message (depends on type) + reply?: string; // message id on which this message is replying + content: Content; // the payload of message (depends on type) } ```