# Refactor DraftState for improved type safety and consistency
- Replaced manual cache key handling with `DraftCache` class using properties - Fixed connected_participants serialization by converting sets to lists - Updated countdown clock component to accept unified state prop
This commit is contained in:
@@ -269,7 +269,7 @@ class DraftParticipantConsumer(DraftConsumerBase):
|
||||
"subtype": DraftMessage.PARTICIPANT_JOIN_CONFIRM,
|
||||
"payload": {
|
||||
"user": self.user.username,
|
||||
"connected_participants": self.draft_state.connected_participants,
|
||||
"connected_participants": list(self.draft_state.connected_participants),
|
||||
},
|
||||
},
|
||||
)
|
||||
@@ -287,7 +287,7 @@ class DraftParticipantConsumer(DraftConsumerBase):
|
||||
"subtype": DraftMessage.PARTICIPANT_LEAVE_INFORM,
|
||||
"payload": {
|
||||
"user": self.user.username,
|
||||
"connected_participants": self.draft_state.connected_participants,
|
||||
"connected_participants": list(self.draft_state.connected_participants),
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user