mirror of
https://github.com/tinode/chat.git
synced 2026-05-07 20:12:42 +00:00
add "sender" header for messages sent on_behalf_of
This commit is contained in:
@@ -881,10 +881,8 @@ The following values are currently defined for the `head` field:
|
||||
* `attachments`: an array of paths indicating media attached to this message `["/v0/file/s/sJOD_tZDPz0.jpg"]`.
|
||||
* `auto`: `true` when the message was sent automatically, i.e. by a chatbot or an auto-responder.
|
||||
* `forwarded`: an indicator that the message is a forwarded message, a unique ID of the original message, `"grp1XUtEhjv6HND:123"`.
|
||||
* `hashtags`: an array of hashtags in the message without the leading `#` symbol: `["onehash", "twohash"]`.
|
||||
* `mentions`: an array of user IDs mentioned (`@alice`) in the message: `["usr1XUtEhjv6HND", "usr2il9suCbuko"]`.
|
||||
* `mime`: MIME-type of the message content, `"text/x-drafty"`; a `null` or a missing value is interpreted as `"text/plain"`.
|
||||
* `priority`: message display priority: hint for the client that the message should be displayed more prominently for a set period of time; only `"high"` is currently defined; `{"level": "high", "expires": "2019-10-06T18:07:30.038Z"}`; `priority` can be set by the topic owner or administrator (`A` permission) only. The `"expires"` qualifier is optional.
|
||||
* `replace`: an indicator that the message is a correction/replacement for another message, a topic-unique ID of the message being updated/replaced, `":123"`
|
||||
* `reply`: an indicator that the message is a reply to another message, a unique ID of the original message, `"grp1XUtEhjv6HND:123"`.
|
||||
* `sender`: a user ID of the sender added by the server when the message is sent on behalf of another user, `"usr1XUtEhjv6HND"`.
|
||||
|
||||
Reference in New Issue
Block a user