Watch
0
0
Fork
You've already forked hyperhive
0

hive-matrix-mcp: fix list_rooms/list_invites docs to say room_id, not id

This commit is contained in:
damocles 2026-10-04 20:16:23 +02:00 • committed by mara
commit d2c6f1a967
2 changed files with 5 additions and 6 deletions

View file

@ -48,7 +48,7 @@ room you haven't read yet.
attachment from a message event to a local file and return its path; attachment from a message event to a local file and return its path;
pair with `read_room` which surfaces attachments as the markers above pair with `read_room` which surfaces attachments as the markers above
- `list_rooms()` — enumerate joined rooms - `list_rooms()` — enumerate joined rooms
(`{ id, canonical_alias, name, member_count }` per room) (`{ room_id, canonical_alias, name, member_count }` per room)
- `list_room_members(room)` — members of a room - `list_room_members(room)` — members of a room
### Room membership ### Room membership
@ -66,7 +66,7 @@ room you haven't read yet.
a pending invite if one exists, but prefer `resolve_invite` for a pending invite if one exists, but prefer `resolve_invite` for
invites (it can reject too). invites (it can reject too).
- `list_invites()` — rooms this agent has been invited to but not - `list_invites()` — rooms this agent has been invited to but not
yet joined (`{ id, canonical_alias, name, inviter, topic }` per room — yet joined (`{ room_id, canonical_alias, name, inviter, topic }` per room —
`inviter` and `topic` are there so an agent has enough to judge an `inviter` and `topic` are there so an agent has enough to judge an
invite before `resolve_invite`ing it, not just a bare room id). invite before `resolve_invite`ing it, not just a bare room id).
<!-- vale write-good.Passive = YES --> <!-- vale write-good.Passive = YES -->

View file

@ -33,10 +33,9 @@ pub struct InviteInfo {
pub canonical_alias: Option<String>, pub canonical_alias: Option<String>,
pub name: Option<String>, pub name: Option<String>,
/// Who sent the invite — the `sender` of the `m.room.member` invite /// Who sent the invite — the `sender` of the `m.room.member` invite
/// event for this account. `None` only on an SDK-side lookup failure /// event for this account. `None` when the invite's member event isn't
/// (`invite_details` errors if the room isn't genuinely in the /// in the local store yet (`invite_details` errors in that case), not
/// `Invited` state, which shouldn't happen here since we got the room /// just on an outright lookup failure.
/// from `invited_rooms()` itself).
pub inviter: Option<String>, pub inviter: Option<String>,
/// The room's topic, where set. Most invites to a freshly created room /// The room's topic, where set. Most invites to a freshly created room
/// won't have one; `canonical_alias`/`name` are just as commonly unset, /// won't have one; `canonical_alias`/`name` are just as commonly unset,