fix(channel): member delete acts as leave; add coverage and docs
All checks were successful
CI / test (push) Successful in 42s

This commit is contained in:
2026-03-08 19:44:42 +03:00
parent 744ded914d
commit 101f39771e
5 changed files with 61 additions and 3 deletions

View File

@@ -802,6 +802,14 @@ Response: `204`
Auth required.
Response: `204`
Behavior:
- `saved messages`: clears personal history only (chat is not removed).
- `channel` + role `owner/admin`: deletes channel for all members.
- `channel` + role `member`: acts as leave channel (removes only current membership).
- `group/private` with `for_all=false`: removes chat for current user only.
- `for_all=true` (where allowed): deletes chat globally.
### POST `/api/v1/chats/{chat_id}/clear`
Clear chat history for current user.