mirror of
https://github.com/cadmium-im/cadmium-docs-legacy.git
synced 2024-11-22 02:12:21 +00:00
[Chats] Add message reply prop
This commit is contained in:
parent
8e028e1171
commit
aea7e57a95
@ -266,6 +266,7 @@ None.
|
|||||||
```typescript
|
```typescript
|
||||||
interface SendMessagePayload {
|
interface SendMessagePayload {
|
||||||
type: string; // the type of message
|
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)
|
content: Content // the payload of message (depends on type)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -319,7 +320,8 @@ interface ReceiveMessagePayload {
|
|||||||
messageID: string; // the id of received message
|
messageID: string; // the id of received message
|
||||||
originServerTimestamp: number; // unix timestamp of received message on the origin server
|
originServerTimestamp: number; // unix timestamp of received message on the origin server
|
||||||
type: string; // the type of message
|
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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user