Skip to content

Commit 91307de

Browse files
committed
fix: send voice state
1 parent 21dacda commit 91307de

File tree

1 file changed

+5
-3
lines changed
  • apps/ui/src/modals/AIChatModal/components

1 file changed

+5
-3
lines changed

apps/ui/src/modals/AIChatModal/components/ChatV2.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ const ChatV2 = () => {
222222
}
223223

224224
const parentMessageId = reply.messageId || undefined
225+
const voiceUrl = recordedVoice
226+
setRecordedVoice(null)
225227

226228
if (reply.isReply) {
227229
setReply(defaultReplyState)
@@ -231,7 +233,7 @@ const ChatV2 = () => {
231233
chat_id: chatId,
232234
prompt: message,
233235
localChatMessageRefId,
234-
voice_url: recordedVoice,
236+
voice_url: voiceUrl,
235237
})
236238
} else {
237239
await createChatMessageService({
@@ -240,7 +242,7 @@ const ChatV2 = () => {
240242
teamId,
241243
localChatMessageRefId, // Used to update the message with socket
242244
parentId: parentMessageId,
243-
voice_url: recordedVoice,
245+
voice_url: voiceUrl,
244246
})
245247
}
246248

@@ -607,7 +609,7 @@ const StyledChatInputWrapper = styled.div`
607609
608610
width: 100%;
609611
610-
margin-top: 50px;
612+
/* margin-top: 50px; */
611613
`
612614
const StyledChatBottom = styled.div`
613615
display: flex;

0 commit comments

Comments
 (0)