farooqkz/chooj

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

Simon-Laux opened this issue · 4 comments

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

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?

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.

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.

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