Skip to content

FIX: chat: if empty shows timer placeholder #33105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2025

Conversation

yuriyaran
Copy link
Contributor

For empty chats, dummy message is still created with id=null (an unsaved Ember model).

This change determines by existing id to show timer or placeholder.

For empty chats, dummy message is still created with id=null (an unsaved Ember model). This change determines by existing id to show timer or placeholder.
@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Jun 6, 2025
@yuriyaran yuriyaran requested a review from jjaffeux June 6, 2025 14:43
@yuriyaran
Copy link
Contributor Author

If we go for simplicity, I will gladly use both suggestions: if (!id) return "–";.

@jjaffeux
Copy link
Contributor

jjaffeux commented Jun 6, 2025

spec failure is unrelated

@yuriyaran yuriyaran merged commit c194642 into main Jun 9, 2025
16 checks passed
@yuriyaran yuriyaran deleted the fix/empty-chat-timer/placeholder branch June 9, 2025 07:59
martin-brennan pushed a commit that referenced this pull request Jun 10, 2025
For empty chats, a dummy message is created with `id=null` (an
unsaved Ember model). 

The timer or placeholder's display is determined by the message ID's presence now (not the `createdAt` prop).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
Development

Successfully merging this pull request may close these issues.

2 participants