feat(conversation): send welcome message on new chat

This commit is contained in:
mlogclub
2026-05-02 12:30:27 +08:00
parent 2555a41a48
commit 1f36717d17
4 changed files with 323 additions and 1 deletions
+6
View File
@@ -232,6 +232,12 @@ export const KefuMessageList = forwardRef<KefuMessageListHandle, KefuMessageList
</div>
) : null}
{safeMessages.length === 0 ? (
<div className="flex min-h-32 items-center justify-center px-3 py-6 text-center text-sm leading-6 text-muted-foreground">
</div>
) : null}
{safeMessages.map((message, index) => {
const previousMessage = index > 0 ? safeMessages[index - 1] : null
const showTimeline =