From e105a1fd6b4e25d3427a046d8c7d59a15745351a Mon Sep 17 00:00:00 2001 From: litruv Date: Sat, 21 Feb 2026 22:22:01 +1100 Subject: [PATCH] feat: add server field to room details in API documentation --- API.md | 18 ++++++++++++++++-- cinny | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index a9d2076..14ec122 100644 --- a/API.md +++ b/API.md @@ -179,17 +179,30 @@ Get a list of available rooms/channels. { "roomId": "!abc123:matrix.org", "name": "General", - "isDirect": false + "server": "matrix.org", + "isDirect": false, + "avatar": null }, { "roomId": "!def456:matrix.org", "name": "Random", - "isDirect": false + "server": "matrix.org", + "isDirect": false, + "avatar": null + }, + { + "roomId": "!xyz789:example.com", + "name": "General", + "server": "example.com", + "isDirect": false, + "avatar": null } ] } ``` +**Note**: The `server` field helps distinguish between rooms with the same name on different servers. + --- ### Send Message @@ -258,6 +271,7 @@ Get information about the currently active room. "data": { "roomId": "!abc123:matrix.org", "name": "General", + "server": "matrix.org", "avatar": "mxc://matrix.org/abc123", "isDirect": false } diff --git a/cinny b/cinny index ef55d15..f00e20b 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit ef55d1583f960ea94e20e3b7b96efb6bd97ebf6d +Subproject commit f00e20b1accd769b1fa6f0bda299a046ce60aa1c