feat: add server field to room details in API documentation
All checks were successful
Build / increment-version (push) Successful in 6s
Build / build-windows (push) Successful in 3m13s
Build / build-linux (push) Successful in 5m3s
Build / create-release (push) Successful in 17s

This commit is contained in:
litruv
2026-02-21 22:22:01 +11:00
parent 0768ed0116
commit e105a1fd6b
2 changed files with 17 additions and 3 deletions

18
API.md
View File

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

2
cinny

Submodule cinny updated: ef55d1583f...f00e20b1ac