matrix-org / matrix-org/matrix-js-sdk
Can't get direct message room type!
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
when creating a direct message room using preset: 'trusted_private_chat', the creator of the room can't get it's type as direct message only if he is invited it will be of type direct message.
I'm using matrixClient.getRooms() to get all rooms and check if it's direct or not
and I'm using room.getDMInviter() ? 'directMessage' : 'room'; to identify the type
how i can identify if the room is direct message or a normal room in a better way.
Contributor guide
Research direction
Start by reading the Matrix room APIs referenced in the report, especially matrixClient.getRooms() and room.getDMInviter(), along with the trusted_private_chat creation flow. Determine how the creator can reliably distinguish a direct-message room from a normal room, and document or test the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100