fix: last commit broke sendinf files with CTRL + V

This commit is contained in:
canove
2020-10-07 06:47:05 -03:00
parent 6cd215dc63
commit cb009551cb

View File

@@ -329,7 +329,7 @@ const MessageInput = ({ ticketStatus }) => {
onChange={handleChangeInput}
disabled={recording || loading || ticketStatus !== "open"}
onPaste={e => {
ticketStatus === "open" && handleInputPaste();
ticketStatus === "open" && handleInputPaste(e);
}}
onKeyPress={e => {
if (loading || e.shiftKey) return;