Commit b866d4a9 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Structs: Set default timestamps correctly

parent 0ac2a6a6
Pipeline #8455 failed with stages
in 37 seconds
......@@ -931,7 +931,7 @@ class MessageProperties:
body: Optional[str] = None
thread: Optional[str] = None
user_timestamp = None
timestamp: float = time.time()
timestamp: float = field(default_factory=time.time)
has_server_delay: bool = False
error = None
eme: Optional[EMEData] = None
......@@ -1153,7 +1153,7 @@ class PresenceProperties:
self_bare: bool = False
from_muc: bool = False
status: str = ''
timestamp: float = time.time()
timestamp: float = field(default_factory=time.time)
user_timestamp: Optional[float] = None
idle_timestamp: Optional[float] = None
signed: Optional[Any] = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment