Skip to content

Conversation

@marcelklehr
Copy link
Member

No description provided.

@marcelklehr marcelklehr requested review from janepie and kyteinsky May 6, 2025 11:53
@marcelklehr marcelklehr force-pushed the fix/disappearing-chat-messages branch from d415bc1 to d3eb838 Compare May 6, 2025 11:53
$message->setRole($role);
$message->setContent($content);
$message->setTimestamp($timestamp);
$message->setSources('[]');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be automatically be populated by the default value, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to test. I'm not sure why that doesn't work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the message gets returned without refetching it from the db. In the db the default is applied, but not in the message object

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah alright that makes sense. Nice one.

@marcelklehr marcelklehr merged commit eaad41b into main May 6, 2025
16 checks passed
@marcelklehr marcelklehr deleted the fix/disappearing-chat-messages branch May 6, 2025 12:54
@julien-nc julien-nc mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants