Load the event stream fix after it's no longer a dataclass (#5948)

This commit is contained in:
Engel Nyst 2024-12-31 23:03:57 +01:00 committed by GitHub
parent 40d8245089
commit 2ec2f2538f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,6 +74,9 @@ class EventStream:
self._lock = threading.Lock()
self._cur_id = 0
# load the stream
self.__post_init__()
def __post_init__(self) -> None:
try:
events = self.file_store.list(get_conversation_events_dir(self.sid))