Watch
0
0
Fork
You've already forked hyperhive
0

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:
damocles 2026-11-02 21:50:21 +01:00 • committed by mara
commit e01b795d5d

View file

@ -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.