Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Jan 15, 2024
1 parent 59b69b8 commit 107239f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livekit-rtc/livekit/rtc/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def from_jsondict(cls, d: Dict[str, Any]) -> "ChatMessage":
id = d.get("id") or generate_random_base62()
timestamp = datetime.now()
if d.get("timestamp"):
timestamp = datetime.fromtimestamp(d.get("timestamp") / 1000.0)
timestamp = datetime.fromtimestamp(d.get("timestamp", 0) / 1000.0)
msg = cls(
id=id,
timestamp=timestamp,
Expand Down

0 comments on commit 107239f

Please sign in to comment.