Skip to content

Commit

Permalink
fix(chat): send own messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisCusihuaman committed Nov 20, 2023
1 parent 3def713 commit 4a782ea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/screens/chat/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ const ChatInput: React.FC<ChatInputProps> = ({
console.log('response', response.data);
// Add the new message to the chat screen, TODO: when send a message, response must return the new message
addNewMessage({
chat_id: '',
content: data.message,
msg_id: '',
from_id: '',
to_id: '',
created_at: '',
...response.data,
});

reset(); // Reset the form after sending
Expand Down

0 comments on commit 4a782ea

Please sign in to comment.