matrix-org / matrix-org/matrix-python-sdk
Adding a room to a community(using api)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 266
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
We are trying to add some rooms to communities using events endpoint like this:
_http://${MatrixHost}/_matrix/client/r0/rooms/${roomId}/state/m.room.related_groups?user_id=${masqId}_
...and sending what it seems adding a room from the community page manually sent as event content:
_{"groups": ["+agroup:adomain.net"]}_
The event m.room.related_groups is registered but after clicking communities icons to filter rooms, only the ones added manually are visible.
Not sure it is just missing api or hidden since I cannot find any api documentation on it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the events endpoint for m.room.related_groups and compare its handling with the event content sent when adding a room manually. Check the existing API documentation for this endpoint and event. Done means the supported API behavior is established and the discrepancy is either documented or reproducibly corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100