send_dm and open_dm report where the recipient stands and fail when they are not in the room. Refs #5982
This commit is contained in:
parent
18dd5535de
commit
e01b795d5d
1 changed files with 157 additions and 20 deletions
|
|
@ -35,6 +35,12 @@ is what an agent reads at call time. They fall into four groups:
|
|||
invite before it answers.
|
||||
- **Receipts:** `mark_read` advances the read receipt.
|
||||
|
||||
**DM recipient check.** `send_dm` and `open_dm` report where the other user
|
||||
stands in the room through a `recipient` field. `joined` means they see the
|
||||
message. `invited` means the invite is pending, and the result carries a
|
||||
`warning`. When the user is in neither state, because the invite did not go
|
||||
through or they left, the call fails and sends nothing.
|
||||
|
||||
**Unread guard.** `send_message`, `send_dm`, `send_file` and `send_reply` fail
|
||||
while the room has unread messages. The agent calls `read_room` and then
|
||||
`mark_read` on the latest event before sending to a room it hasn't read.
|
||||
|
|
|
|||
Loading…
Reference in a new issue