Make Room.members a properly updating ListModel

This commit is contained in:
miruka
2019-05-14 20:20:54 -04:00
parent 606771735a
commit 1a4ac0f432
4 changed files with 24 additions and 8 deletions

View File

@@ -40,6 +40,13 @@ class Room(ListItem):
leftEvent: Optional[Dict[str, str]] = None
class RoomMember(ListItem):
_required_init_values = {"userId"}
_constant = {"userId"}
userId: str = ""
# ----------
class RoomEvent(ListItem):