matrix-org / matrix-org/matrix-spec

Changing 1 room as Direct Chat, the API requires me to pass ALL the rooms which are Direct Chat

Open
#346 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Client-Server enhancement
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

When I change a Group to Direct Chat via API, it looks like I need to pass ALL the rooms which are Direct Chats as Parameters. This does not sound right. Why would I need to pass ALL the rooms and IDs for changing 1 Room to Direct Chat.

Direct Chat "Accept" also does the same thing looks like

example I have A,B,C,D as Direct Chat and X,Y,Z as Rooms/Groups. When I change X to Direct Chat, I have to pass A,B,C,D,X to make just X as a Direct Chat

This is not right. We need to change the API.

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 reviewing the Matrix API definitions for changing a room to Direct Chat and for Direct Chat acceptance, including how the current room and direct-chat IDs are represented. Done means the specification defines a way to change or accept one room without passing every existing Direct Chat, with the affected request examples updated.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.