Open jmartinesp opened 7 hours ago
Sounds good to me. I was also tempted to add this field myself while implementing :+1:
It would be good to re-add your MSC comment as a discussion on the diff so people can discuss the idea in a resolvable thread.
Description:
At the moment, to check if a room is a joined, invited or knocked one we need to do something like:
Does it have
invite_state
?That's kind of complex, it assumes several cases when we're not sure how to proceed and doesn't detail how we should differentiate between a joined room and a room with a left, kicked or banned membership (apparently, this would be another membership event check on branch 2 above).
We've discussed in chats a couple of times adding some membership field to the rooms so it's the server that tells us which membership we have in the room instead of the client having to make the decisions: it would simplify the work for clients a lot and also make sure we have consistent results between clients.
I'm adding this issue so we keep track of this suggestion.