Skip to content

Commit

Permalink
Do not update the time when a message is streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Dec 16, 2024
1 parent 181caa7 commit 1bfd0d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/jupyterlab-chat/jupyterlab_chat/ychat.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def update_message(self, message: Message, append: bool = False):
with self._ydoc.transaction():
index = self._indexes_by_id[message.id]
initial_message = self._get_message_by_index(index)
message.time = initial_message["time"]
if append:
message.body = initial_message["body"] + message.body
self._ymessages[index] = asdict(message, dict_factory=message_asdict_factory)
Expand Down

0 comments on commit 1bfd0d3

Please sign in to comment.