Skip to content

Commit

Permalink
Merge pull request #291 from l3vels/feat/send-voice
Browse files Browse the repository at this point in the history
fix: send voice state
  • Loading branch information
Chkhikvadze authored Nov 7, 2023
2 parents 9489a8b + 91307de commit 7ee22a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/ui/src/modals/AIChatModal/components/ChatV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ const ChatV2 = () => {
}

const parentMessageId = reply.messageId || undefined
const voiceUrl = recordedVoice
setRecordedVoice(null)

if (reply.isReply) {
setReply(defaultReplyState)
Expand All @@ -231,7 +233,7 @@ const ChatV2 = () => {
chat_id: chatId,
prompt: message,
localChatMessageRefId,
voice_url: recordedVoice,
voice_url: voiceUrl,
})
} else {
await createChatMessageService({
Expand All @@ -240,7 +242,7 @@ const ChatV2 = () => {
teamId,
localChatMessageRefId, // Used to update the message with socket
parentId: parentMessageId,
voice_url: recordedVoice,
voice_url: voiceUrl,
})
}

Expand Down Expand Up @@ -607,7 +609,7 @@ const StyledChatInputWrapper = styled.div`
width: 100%;
margin-top: 50px;
/* margin-top: 50px; */
`
const StyledChatBottom = styled.div`
display: flex;
Expand Down

0 comments on commit 7ee22a3

Please sign in to comment.