diff --git a/frontend/src/components/MainContainer/index.js b/frontend/src/components/MainContainer/index.js index 27dce78..ce7c2a2 100644 --- a/frontend/src/components/MainContainer/index.js +++ b/frontend/src/components/MainContainer/index.js @@ -2,7 +2,7 @@ import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Container from "@material-ui/core/Container"; -import { colors } from "@material-ui/core"; +//import { colors } from "@material-ui/core"; const useStyles = makeStyles((theme) => ({ mainContainer: { diff --git a/frontend/src/components/MessageInput/index.js b/frontend/src/components/MessageInput/index.js index 3a33829..84de659 100644 --- a/frontend/src/components/MessageInput/index.js +++ b/frontend/src/components/MessageInput/index.js @@ -310,7 +310,8 @@ const MessageInput = ({ ticketStatus }) => { setReplyingMessage(null); }; - const handleStartRecording = async () => { + const handleStartRecording = async () => { + setLoading(true); try { await navigator.mediaDevices.getUserMedia({ audio: true }); diff --git a/frontend/src/components/MessagesList/index.js b/frontend/src/components/MessagesList/index.js index 69bbac2..d3a61de 100644 --- a/frontend/src/components/MessagesList/index.js +++ b/frontend/src/components/MessagesList/index.js @@ -363,8 +363,8 @@ const MessagesList = ({ ticketId, isGroup }) => { socket.on("appMessage", (data) => { if (data.action === "create") { - dispatch({ type: "ADD_MESSAGE", payload: data.message }); - + dispatch({ type: "ADD_MESSAGE", payload: data.message }); + console.log('* NOVA MENSAGEM CAP: ', data.message) scrollToBottom(); @@ -421,6 +421,7 @@ const MessagesList = ({ ticketId, isGroup }) => { return ; } if (message.mediaType === "audio") { + return (