farooqkz / chooj

Matrix chat app for KaiOS feature phones supporting voice calls
74 stars 13 forks source link

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

Open Simon-Laux opened 1 year ago

farooqkz commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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