matrix-org / matrix-org/matrix-python-sdk

Adding a room to a community(using api)

Open
#318 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.