Skip to content

Commit

Permalink
Merge pull request #204 from iceljc/features/refine-chat-window
Browse files Browse the repository at this point in the history
keep the latest bot audio speaker
  • Loading branch information
iceljc authored Aug 25, 2024
2 parents 4f3a5bb + b7d3487 commit a2f536c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1122,10 +1122,12 @@
</div>
<div class="msg-container">
<RcMessage message={message} />
<AudioSpeaker
id={message?.message_id}
text={message?.rich_content?.message?.text || message?.text}
/>
{#if message?.message_id === lastBotMsg?.message_id}
<AudioSpeaker
id={message?.message_id}
text={message?.rich_content?.message?.text || message?.text}
/>
{/if}
{#if !!message.is_chat_message || !!message.has_message_files}
<MessageFileGallery
messageId={message?.message_id}
Expand Down

0 comments on commit a2f536c

Please sign in to comment.