File tree 1 file changed +5
-3
lines changed
apps/ui/src/modals/AIChatModal/components
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ const ChatV2 = () => {
222
222
}
223
223
224
224
const parentMessageId = reply . messageId || undefined
225
+ const voiceUrl = recordedVoice
226
+ setRecordedVoice ( null )
225
227
226
228
if ( reply . isReply ) {
227
229
setReply ( defaultReplyState )
@@ -231,7 +233,7 @@ const ChatV2 = () => {
231
233
chat_id : chatId ,
232
234
prompt : message ,
233
235
localChatMessageRefId,
234
- voice_url : recordedVoice ,
236
+ voice_url : voiceUrl ,
235
237
} )
236
238
} else {
237
239
await createChatMessageService ( {
@@ -240,7 +242,7 @@ const ChatV2 = () => {
240
242
teamId,
241
243
localChatMessageRefId, // Used to update the message with socket
242
244
parentId : parentMessageId ,
243
- voice_url : recordedVoice ,
245
+ voice_url : voiceUrl ,
244
246
} )
245
247
}
246
248
@@ -607,7 +609,7 @@ const StyledChatInputWrapper = styled.div`
607
609
608
610
width: 100%;
609
611
610
- margin-top: 50px;
612
+ /* margin-top: 50px; */
611
613
`
612
614
const StyledChatBottom = styled . div `
613
615
display: flex;
You can’t perform that action at this time.
0 commit comments