Skip to content

Commit

Permalink
Merge branch 'main' of github.com:l3vels/L3AGI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chkhikvadze committed Nov 7, 2023
2 parents a3670c1 + 7ee22a3 commit 55708a4
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 55708a4

Please sign in to comment.