RoomEvent: eventId property, which is now mainKey

This commit is contained in:
miruka
2019-05-14 19:39:31 -04:00
parent 40a19bf570
commit 0b32bf2738
2 changed files with 9 additions and 2 deletions

View File

@@ -43,9 +43,10 @@ class Room(ListItem):
# ----------
class RoomEvent(ListItem):
_required_init_values = {"type", "dict", "dateTime"}
_required_init_values = {"eventId", "type", "dict", "dateTime"}
_constant = {"type"}
eventId: str = ""
type: str = ""
dict: Dict[str, Any] = {}
dateTime: QDateTime = QDateTime()