Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

chat with only one extra member is mistakenly taken as DM chat #70

Open
Simon-Laux opened this issue Mar 3, 2023 · 4 comments
Open
Milestone

Comments

@Simon-Laux
Copy link
Collaborator

No description provided.

@Simon-Laux Simon-Laux changed the title chat with only one member is mistakenly taken as chat with only one member is mistakenly taken as DM chat Mar 3, 2023
@Simon-Laux Simon-Laux changed the title chat with only one member is mistakenly taken as DM chat chat with only one extra member is mistakenly taken as DM chat Mar 3, 2023
@farooqkz
Copy link
Owner

farooqkz commented Mar 3, 2023

I think you meant a chat with only one extra member which is supposed to be a threesome DM, is considered as non-DM. right?

@Simon-Laux
Copy link
Collaborator Author

I mean I created a new room that only has one extra member besides myself is considered to be a dm chat, even though it is a room where others can join. there are some issues in the matrix js sdk repo about that, it doesn't seem like an easy problem.

@farooqkz
Copy link
Owner

farooqkz commented Mar 3, 2023

I think a room is considered DM if a special m.direct attribute is set. For now, I am considering a room with at most 2 members a DM.

@farooqkz farooqkz added this to the 0.0.0 milestone Mar 3, 2023
@farooqkz
Copy link
Owner

A room is a DM room if it is in mClient.getAccountData("m.direct")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants